[R] data frame component replacement: feature or bug? (PR#266)

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Sep 6 00:32:35 CEST 1999


p.dalgaard at biostat.ku.dk writes:

> dfr[1]<-list(X1=1)
> 
> which doesn't extend dfr$X1, whereas
> 
> dfr[c(1,2)]<-list(X1=3,X2=4)
> 
> does. Splus handles both cases. 

Found, fixed, and committed for 0.65.1 (a drop=FALSE was missing where
the replication was done)

-- 
   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