Displaying 1 result from an estimated 1 matches for "tarmat".
Did you mean:
tariat
2006 Sep 11
0
' quote problem in reading lots of files at once
...ead all the files and select the first
column and 4th column and fill the values into a big
matrix. I have a pre-made matrix that would have all
rownames (1st column) and coloumn names (4th column
from file to be read).
mymat <- matrix(data = 1, nrow = length(gomfs), ncol =
length(x))
rownames(tarmat)<-gomfs
colnames(tarmat)<-x
# here gomfs is a large set of rownames from the files
to be read.
# x (114 files)
for(i in x){
xa <- read.table(i,sep='\t')
a2 <- as.character(xa[,1])
a3 <- xa[,4]
nd <- data.frame(a2,a3)
tarmat[a2,i]...