dataminer

Saturday, April 5, 2014

How to change Column heading(s) in R

x=1:5
x
headings= c("Serial","Year", "Sales", "Profit", "SalesRep")
names(x) <- headings
x
#Change the column heading of 5th column
names(x)[5]="Sales Rep"
x

Posted by Unknown at 12:39 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2016 (2)
    • ►  February (2)
  • ►  2015 (7)
    • ►  October (5)
    • ►  April (1)
    • ►  January (1)
  • ▼  2014 (8)
    • ►  August (3)
    • ►  July (2)
    • ►  June (1)
    • ▼  April (1)
      • How to change Column heading(s) in R
    • ►  March (1)
  • ►  2013 (22)
    • ►  November (3)
    • ►  October (7)
    • ►  September (12)

About Me

Unknown
View my complete profile
Simple theme. Powered by Blogger.