If I understand you correctly, you want to stack the 15 columns on top of 
one another? I assuming all the data is numeric?

In this case, convert the data.frame to a matrix and set the dim of the 
matrix to NULL.

If df is the data.frame,
df1 <- as.matrix(df)
dim(df1) <- NULL






<[EMAIL PROTECTED]>
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 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

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to