Subject: Private data libraries (idea & trick)
From: Peter Dalgaard BSA (firstname.lastname@example.org)
Date: Wed 22 Sep 1999 - 21:47:55 EST
It has been annoying me for a while that data in user areas are more
difficult to handle than those in the packages.
Especially for beginners, it would be very handy to be able just to
say "data(mydata)", rather than
What just occurred to me was that the following hack actually works:
and everything in ./data behaves as if it were in a package.
Another interesting hack is that one can do this:
[pd@blueberry data]$ cat > file.txt
[pd@blueberry data]$ cat > file.R
and then from inside R, get the dataframe with factor recoding and
1 1 b
2 3 d
Question: Should we perhaps clean this up a little and formalize it?
-- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (email@example.com) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel 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: firstname.lastname@example.org _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:08 EST