Thanks Gabor and Jeffrey,

and thanks for explaining the differences. I think I'll go with Jeffery's as I think I want entries for COGs with no pathway.

Alison
On 10-Oct-10, at 8:59 PM, Jeffrey Spies wrote:

sapply(dat, function(x){
   tmp<-unlist(strsplit(x, '\t', fixed=T))
   out <- list(tmp[seq_along(tmp)[-1]])
   names(out) <- tmp[1]
   out
}, USE.NAMES=F)

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to