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, read.delim)
library(data.table)
files.matrix <-rbindlist(named.list)

> dim(files.matrix)
[1] 6537456       2

What happened here is all 90K rows for 72 files were rbinded.

I want to cbind.

Could anyone please help me.
Thanks
Adrian

	[[alternative HTML version deleted]]

