[R] rbind and data.frame [simplified]
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Mon Dec 10 12:16:48 CET 2001
Göran Broström <gb at stat.umu.se> writes:
> >
> > What happens if you do do something like this?: Replace the
> > dat.out[cur.row, ] <- fixed.rec
> > with
> > for (i in 1:ncol) dat.out[[i]][cur.row] <- fixed.rec[[i]]
> >
> > bypassing "[<-.data.frame"
> >
>
> Timing stopped at: 529.27 122.76 668.1 0 0
>
> i.e. catastrophic! I hadn't time to wait; this was with writing 100
> records.
Oh. Yes, replacing [<-.data.frame with [[<-.data.frame is not going to
work...
Suppose you precede that with dat.out <- unclass(dat.out) ?
(and end with dat.out <- as.data.frame(dat.out))
--
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