[R] column name handling and long labels
Werner Wernersen
pensterfuzzer at yahoo.de
Thu Feb 21 12:54:16 CET 2008
Thank you very much, Henrique! The comment function is
exactly what I was looking for.
Regarding 1) why example was bad: The column names
don't follow an easy pattern but are more like "s8v2",
"s12v3", "s6v1" etc.
Kind regards,
Werner
--- Henrique Dallazuanna <wwwhsd at gmail.com> schrieb:
> Try this:
>
> 1)
> mydf[1,paste("col", 4:8, sep="")]
>
> 2) You can use comment function:
>
> comment(mydf) <- c("Column number1", "Column
> number2")
>
> or
>
> comment(mydf$col1) <- "Column number1 etc"
>
> then
>
> comment(mydf) and comment(mydf$col1) to see the
> labels
>
>
More information about the R-help
mailing list