[R] How to append to a data.frame?

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Dec 9 08:02:42 CET 2003


On Tue, 9 Dec 2003, David Kreil wrote:

> 
> Dear Prof. Ripley,
> 
> Thank you very much for your fast and helpful reply!
> 
> Is there a canonical way of doing this without a kludge or is the below 
> adequate?
> 
>   d<-as.data.frame(matrix(nrow=1000))

You need to set up the columns as you need them to be eventually.

> 
> With many thanks again for your help,
> 
> Yours sincerely,
> 
> David Kreil.
> 
> 
> ------------------------------------------------------------------------
> Dr David Philip Kreil                 ("`-''-/").___..--''"`-._
> Research Fellow                        `6_ 6  )   `-.  (     ).`-.__.`)
> University of Cambridge                (_Y_.)'  ._   )  `._ `. ``-..-'
> ++44 1223 764107, fax 333992         _..`--'_..-_/  /--'_.' ,'
> www.inference.phy.cam.ac.uk/dpk20   (il),-''  (li),'  ((!.-'
> 
> 
> 
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list