[R] how to remove part of the string

Bill Hyman billhyman1 at yahoo.com
Wed Jun 6 22:45:41 CEST 2012


Dear all,

Does any one know how to remove part of the string?

For example, "LTA4H||Leukotriene A4 hydrolase" is a gene name plus gene description. I hope to remove "||Leukotriene A4 hydrolase". What would be the R code to do that using gsub()? Many thanks!

Bill



More information about the R-help mailing list