Re: [R] concatenating multiple columns from files

2009-07-31 Thread Stephen Tucker
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

Re: [R] concatenating multiple columns from files

2009-07-30 Thread Bill.Venables
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] concatenating multiple columns from files

2009-07-30 Thread ferreirafm
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