[R] How can make loop more faster?

2013-06-15 Thread Fabrice Tourre
Dear expert, How can I make follow codematrix function more faster? top20.dat - top20.dat[,7:length(top20.dat[1,])] top40.dat - read.table(top40snps.ped,header=F,sep=\t,stringsAsFactors=F) row.names(top40.dat) - top40.dat[,1] top40.dat - top40.dat[,7:length(top40.dat[1,])] codematrix -

Re: [R] How can make loop more faster?

2013-06-15 Thread David Winsemius
On Jun 15, 2013, at 2:38 PM, Fabrice Tourre wrote: Dear expert, How can I make follow codematrix function more faster? top20.dat - top20.dat[,7:length(top20.dat[1,])] top40.dat - read.table(top40snps.ped,header=F,sep=\t,stringsAsFactors=F) Did you attach a file with a non-'.txt'