On Fri, Jun 3, 2011 at 12:18 PM, Matthew DeAngelis <roni...@gmail.com> wrote:
> Hi all,
>
> Is there any way to add notes or comments to R objects?  It can be hard for
> me to come up with a descriptive name that encapsulates all the differences
> between data sets, so it would be very helpful if I could add a note which
> described the object.  I didn't find anything like this in the R docs.
>

Try comment:

> DF <- data.frame(x = 1:2)
> comment(DF) <- "Hello"
> comment(DF)
[1] "Hello"



-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
R-help@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.

Reply via email to