Hello,
I've a data frame with 15 colums and 6000 rows, and I need the data in a
single vector of size 9 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
Use unlist.
In any case, don't write an explicit loop over
the columns. See ?lapply instead.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 05 September 2003 16:08
To: [EMAIL PROTECTED]
Subject: [R] all values from a data frame
Security Warning
Dear Arne,
At 05:07 PM 9/5/2003 +0200, [EMAIL PROTECTED] wrote:
Hello,
I've a data frame with 15 colums and 6000 rows, and I need the data in a
single vector of size 9 for ttest. Is there such a conversion function in
R, or would I have to write my own loop over the colums?
thanks
]
Sent by: [EMAIL PROTECTED]
09/05/2003 11:07 AM
To: [EMAIL PROTECTED]
cc:
Subject:[R] all values from a data frame
Hello,
I've a data frame with 15 colums and 6000 rows, and I need the data in a
single vector of size 9 for ttest