Skip to content
Back to formatted view

Raw Message

Message-ID: <1350992746344-4647113.post@n4.nabble.com>
Date: 2012-10-23T11:45:46Z
From: brunosm
Subject: Join data frame columns

Hi,

I have a data frame with 100 variables (numeric and non numeric types), and
I want to join them in only one column, like a vector, but i want to keep
the non numeric variables like they are.

I know that i can do something like this:

Suppose that my data is in df variable

new_df<-data.frame(c(df[,1],df[,2],df[,3],df[,4],...........)

This works but i have 100 variables!

Any way of doing this a little bit faster?

Thanks a lot!





--
View this message in context: http://r.789695.n4.nabble.com/Join-data-frame-columns-tp4647113.html
Sent from the R help mailing list archive at Nabble.com.