platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 1 minor 2.1 year 2001 month 01 day 15 language R For years, I used a function in Splus to give me more information than just the object names which ls() would do. Typically, it would give something like this: Object Mode Rows Cols Len Date 1 .Last.value NULL - - 0 20 Mar 13:44 2 last.warning list - - 50 16 Mar 13:58 3 glm.mano function - - 2 16 Mar 13:54 4 gam.mano function - - 2 16 Mar 13:18 5 .Random.seed numeric - - 12 16 Mar 11:57 6 Kyph.glm list - - 19 16 Mar 09:42 7 mano.df dataframe 240 5 5 15 Mar 11:31 8 reorg function - - 2 15 Mar 11:31 9 m793.df dataframe 15 32 32 15 Mar 10:52 10 .First function - - 1 19 Feb 14:22 11 ps.region numeric - - 4 3 May 1996 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. Ideas gratefully accepted. Thanks -- ************************************************************* Patrick Connolly HortResearch Great minds discuss ideas; Mt Albert Average minds discuss events; Auckland Small minds discuss people. New Zealand .... Anon Ph: +64-9 815 4200 x 7188 ************************************************************* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi there. I am converting some Splus syntax - is there an R equivalent for the 'lag' function, as in: Xi<-lag(X,i) = all the members of X are shifted along by i? Stuart ************************************************************* Stuart Leask MA MRCPsych Clinical Lecturer in Psychiatry Duncan Macmillan House Porchester Road "Ask a clock how it works, & Nottingham all it will tell you is the time" UK NG3 6AA Tel: +44-0 115 969 1300 xtn 40784 Fax: 0115 955 5352 ************************************************************* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I have a minor glitch in the "sm" contributed package, routine "sm.regression". It's supposed to accept the "ylim" option to set the scale of the plot, but that doesn't appear to be working. I'm using the pre-compiled version for Windows. I haven't tried any of the other versions. It *does* appear to be accepting the "col" option; I can plot the smoothed curve in red. It would be nice if I could get it to take "lwd" as well, and plot the line *after* the points instead of before. What I am doing now is the "sm.regression", then re-plotting the points and the smoothed curve to get the picture I want. -- znmeb at aracnet.com (M. Edward Borasky) http://www.aracnet.com/~znmeb http://www.borasky-research.net/ Coming soon to a theatre near you -- the remake of "War With The Newts"! -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._