[R] foreign read.S

Frank E Harrell Jr fharrell at virginia.edu
Thu May 30 12:50:54 CEST 2002


When I convert an S-Plus 2000 binary list object to R using read.S in the foreign package, elements of the list that have 'names' attributes are sometimes set up to have '.Names' attributes.  I suppose that S-Plus had used .Names invisibly to me.  Does anyone have code to recursively go through a complex list efficiently and change all '.Names' attributes to 'names'?  I tried just doing this with dput or dump and Emacs but the list contains some expressions that dget or source tries to evaluate that do not make sense at that stage.

Perhaps read.S could be enhanced to do this automatically.

Thanks,

Frank

-- 
Frank E Harrell Jr              Prof. of Biostatistics & Statistics
Div. of Biostatistics & Epidem. Dept. of Health Evaluation Sciences
U. Virginia School of Medicine  http://hesweb1.med.virginia.edu/biostat
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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