Re: [R] Table collumn to single var in lowcase

From: Chuck Cleland <ccleland_at_optonline.net>
Date: Sat 03 Jun 2006 - 00:59:51 EST

names(DataTABLE) <- tolower(names(DataTABLE))

?casefold
?names

Milton Cezar wrote:
> Dear All,
>
> I have read a table using
> DataTABLE <- read.table("mytable.txt, header=T)
>
> And get the following data structure
> Var1 VAR2 VaR3 Var4 ...
>
> How can I list all collumn names (in lowcase) and create variables from table collumns. By hand I do
> var1 <- DataTABLE$Var1
> var2 <- DataTABLE$VAR2
> var3 <- DataTABLE$VaR3
> var4 <- DataTABLE$Var4
>
> Unfortunatelly these data come as an output from other program and the data file have about 80 collumns.
>
> Thanks in advance!
>
> miltinho
>
> __________________________________________________
>
>
> [[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
>

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894

______________________________________________
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
Received on Sat Jun 03 02:44:17 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 Sat 03 Jun 2006 - 04:10:30 EST.

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