[R] all values from a data frame

Simon Fear Simon.Fear at synequanon.com
Fri Sep 5 17:18:37 CEST 2003


Use unlist.

In any case, don't write an explicit "loop over 
the columns". See ?lapply instead.

> -----Original Message-----
> From: Arne.Muller at aventis.com [mailto:Arne.Muller at aventis.com]
> Sent: 05 September 2003 16:08
> To: r-help at stat.math.ethz.ch
> Subject: [R] all values from a data frame
> 
> 
> Security Warning:
> If you are not sure an attachment is safe to open please contact 
> Andy on x234. There are 0 attachments with this message.
> ________________________________________________________________
> 
> 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
> 
> 	Arne
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
 

Simon Fear
Senior Statistician
Syne qua non Ltd
Tel: +44 (0) 1379 644449
Fax: +44 (0) 1379 644445
email: Simon.Fear at synequanon.com
web: http://www.synequanon.com
 
Number of attachments included with this message: 0
 
This message (and any associated files) is confidential and\...{{dropped}}




More information about the R-help mailing list