[R] More powerful than objects() or ls()
Thomas Lumley
tlumley at u.washington.edu
Fri Mar 23 12:50:26 CET 2001
On Thu, 22 Mar 2001, Patrick Connolly wrote:
>
> There are times when the date is very valuable information,
> particularly years later. I would like to be able to do something
> similar in R but of course, the same method won't work because objects
> are not stored as separate unix files in a .Data directory.
>
> I had thought of adding a date with attr() and was then going to redo
> the function which could use that information in place of the file
> information I used in Splus. Unfortunately, that means the date
> attibute is added to everything when displayed which is too cluttered.
>
> Then of course, I'd need to figure an easy (preferably automatic) way
> of adding the date to the objects I was interested in. However, I was
> hoping someone might already have a better way of achieving the same
> end, and preferably without the unnecessary verbiage mentioned above.
comment() does the information management you need. There isn't an
automatic way of doing the date information and I can't think ofa general
one that wouldn't be horribly slow. You could add a date-setting function
to your most frequnelty used object creation functions (perhaps
read.table and glm in my case).
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list