On 10/17/2013 06:17 PM, catalin roibu wrote:
Dear R users,

I want to extract column's from different data frame with different row
length.
How can I do this in R?

Hi catalin,
If I understand your question, which I think is:

I want to extract columns from different data frames with differing numbers of rows and store them in a single object.

The answer is probably to use a list:

datalist<-list()
datalist[[1]]<-dataframe1[,"variable1"]
datalist[[2]]<-dataframe2[,"variable3"]
...

where each element of "datalist" may have different numbers of values.

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to