[R] all values from a data frame

John Fox jfox at mcmaster.ca
Fri Sep 5 17:39:26 CEST 2003


Dear Arne,

At 05:07 PM 9/5/2003 +0200, Arne.Muller at aventis.com wrote:
>Hello,
>
>I've a data frame with 15 colums and 6000 rows, and I need the data in a
>single vector of size 90000 for ttest. Is there such a conversion function in
>R, or would I have to write my own loop over the colums?
>
>         thanks for your help + kind regards

unlist() should do what you want.

I hope that this helps,
  John

-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox




More information about the R-help mailing list