[R] Naming columns

John Kane jrkrideau at inbox.com
Tue Aug 27 13:46:26 CEST 2013


names(mydatat)  <-  c("V1","V2","V3")

For future reference
https://github.com/hadley/devtools/wiki/Reproducibility and/or
 http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

John Kane
Kingston ON Canada


> -----Original Message-----
> From: mbanks3 at partners.org
> Sent: Mon, 26 Aug 2013 14:42:36 -0700 (PDT)
> To: r-help at r-project.org
> Subject: [R] Naming columns
> 
> Hi ,
> 
> I just imported a large data set from notepad. I want to label the
> columns
> in R.
> 
> I used 'import Dataset' to bring in my data set
> Now, I would like to label V1,V2,V3 etc??
> 
> Thanks
> 
> 
> 
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Naming-columns-tp4674595.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!



More information about the R-help mailing list