[R] rename cols
Doran, Harold
HDoran at air.org
Mon Sep 11 18:54:11 CEST 2006
names(data) <- c('Apple', 'Orange')
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Ethan Johnsons
> Sent: Monday, September 11, 2006 12:49 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] rename cols
>
> A quick question please!
>
> How do you rename column names? i.e. V1 --> Apple; V2 -->
> Orange, etc.
>
> thx much
>
> ej
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
More information about the R-help
mailing list