Lukasz Komsta <[EMAIL PROTECTED]> writes: > Dear useRs, > > Is there any more elegant way to convert dataframe to a vector of all > its values than as.vector(as.matrix(x)) ? I did not have to do such > conversion yet, so I am not sure... (of course as.vector() alone does > not work).
unlist(x) should do it. It does spend a fair bit of effort in adding names, so it could be less efficient. -- O__ ---- Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
