ginal Message
From: ferreirafm
To: r-help@r-project.org
Sent: Thursday, July 30, 2009 5:29:46 PM
Subject: [R] concatenating multiple columns from files
R-users,
I want to concatenate columns from different files in a single object.
I'm doing bad. My peace of code is as follow:
rawdata
om: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of ferreirafm
Sent: Friday, 31 July 2009 8:46 AM
To: r-help@r-project.org
Subject: [R] concatenating multiple columns from files
R-users,
I want to concatenate columns from different files in a single object.
I
R-users,
I want to concatenate columns from different files in a single object.
I'm doing bad. My peace of code is as follow:
rawdata <- list.files("./data")
for (i in rawdata) {
mat <- read.table(paste(i ,sep=""))
}
At the end of the loop I have just one column. What I'm doing wrong?
Thank
3 matches
Mail list logo