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 <[EMAIL PROTECTED]> 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
>
>
______________________________________________
[email protected] 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.