[R] Table collumn to single var in lowcase
P Ehlers
ehlers at math.ucalgary.ca
Fri Jun 2 17:06:58 CEST 2006
tolower(names(DataTABLE))
Peter Ehlers
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 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
More information about the R-help
mailing list