Re: [R] Creating data frame from individual files

2013-04-04 Thread arun
lt;- names(lst1)  res #  File1 File2 #A   2.4   1.3 #B   2.1   0.4 A.K. ____________ From: Adrian Johnson To: arun Sent: Thursday, April 4, 2013 2:49 PM Subject: Re: [R] Creating data frame from individual files HI: sorry for confusion.  I have 72 files and all 72 files

Re: [R] Creating data frame from individual files

2013-04-03 Thread arun
(named.list2))])  dimnames(mat2)<-NULL  mat2 # [,1] [,2] #[1,]    1    7 #[2,]    2    8 #[3,]    3    9 #[4,]    4   10 #[5,]    5   11 #[6,]    6   12 I am not sure this is what you wanted. A.K. - Original Message - From: Adrian Johnson To: r-help Cc: Sent: Wednesday, April 3,

[R] Creating data frame from individual files

2013-04-03 Thread Adrian Johnson
Dear Group: I have 72 files (.txt). Each file has 2 columns and column 1 is always identical for all 70 files. Each file has 90,799 rows and is standard across all files. I want to create a matrix 40(rows) x 70 columns. I tried : temp = list.files(pattern="*.txt") named.list <- lapply(temp, rea