search for: b1_toy_set_txt

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

2010 Dec 09
4
lapply getting names of the list
...final_filename <- paste(filename,”toy_set.txt”,sep=”_”) write.table(x, file = paste(path, final_filename,sep=”/”, row.names=FALSE, quote=FALSE,sep=”\t”) } ) In lapply I wanted to give a unique filename to all the split Sample Ids, i.e. name them here as A1_toy_set.txt, B1_toy_set_txt. How do I get those names, i.e. A1, B1 to a create a filename like above. When I write each of the element in the list obtained after split into a file, the column names would have names like A1.Name, A1.SampleID, A1.Al1, ….. Can I get rid of “A1” in the column names within the lapply (other than r...