search for: test_cogtopath

Displaying 1 result from an estimated 1 matches for "test_cogtopath".

2010 Oct 10
2
Help reading table rows into lists
..."pathh")) I am stuck and have tried various methods involving (probably mangled) versions of lappy and loops. Any suggestions on the most efficient way to do this would be great. Thanks, Alison Here is my latest attempt. ##### line_num<-length(scan(file="/g/bork8/waller/ test_COGtoPath.txt",what="character",sep="\n")) COG2Path<-vector("list",line_num) COG2Path<-lapply(1:(line_num-1),function(x) scan(file="/g/bork8/waller/ test_COGtopath.txt",skip=x,nlines=1,quiet=T,what='character',sep="\t")) ##### I am getti...