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

David Kreil kreil at ebi.ac.uk
Tue Dec 9 18:14:07 CET 2003


Dear Peter Dalgaard,

Thank you for these examples, they are very neat!
I really like the
  data.frame(x=as.numeric(NA),y=factor(NA))[rep(NA,1000),]
trick.

With best regards,

David.


------------------------------------------------------------------------
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),'  ((!.-'




More information about the R-help mailing list