Re: [R] rename cols

From: Doran, Harold <HDoran_at_air.org>
Date: Mon 11 Sep 2006 - 16:54:11 GMT


names(data) <- c('Apple', 'Orange')

> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Ethan Johnsons
> Sent: Monday, September 11, 2006 12:49 PM
> To: r-help@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@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.
>



R-help@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. Received on Tue Sep 12 03:03:51 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 11 Sep 2006 - 17:30:04 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.