[R] Notes on R Objects

Gabor Grothendieck ggrothendieck at gmail.com
Fri Jun 3 21:30:49 CEST 2011


On Fri, Jun 3, 2011 at 12:18 PM, Matthew DeAngelis <ronin78 at 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



More information about the R-help mailing list