[R] colnames of a column

Henrique Dallazuanna wwwhsd at gmail.com
Fri Jun 20 01:18:55 CEST 2008


Try
names(rwl[1])

2008/6/19, Alfredo Alessandrini <alfreale74 at gmail.com>:
> Hi,
>
> With this data.frame:
>
>> class(rwl)
> [1] "data.frame"
>
>>rwl
>   0028002F 0028013F 0028032F
> 1833     3.39       NA       NA
> 1834     3.09       NA       NA
> 1835     3.05       NA       NA
> 1836     3.31       NA       NA
> 1837     2.26       NA       NA
>
>> colnames(rwl)
> [1] "0028002F" "0028013F" "0028032F"
>
> Ok....
>
>> colnames(rwl[,1])
> NULL
>
> why?? I expect: "0028002F"
>
>
>
> Thanks in advance,
>
> Alfredo
>
> ______________________________________________
> 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.
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list