[R] Individual rename of list items

Peter Dalgaard BSA p.dalgaard at pubhealth.ku.dk
Thu Mar 1 13:59:32 CET 2001


Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:

> 
> What you intended I think was
> 
> names(Empl)[1]<-"newempl"
> 
> which works, but seems not allowed in the R documentation ....

Er, where? I'd say that one is a consequence of general rules for
"complex replacements". How well *they* are documented is another
matter. The R-lang manual has a placeholder consisting of a garbled
bunch of keywords indicating that someone (me, I'm afraid) at some
point was going to write something about something like that....

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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