Hi. You can do something like this:

gsub("\\|\\|Leukotriene A4 hydrolase","","LTA4H||Leukotriene A4 hydrolase")

Andrija

On Wed, Jun 6, 2012 at 10:45 PM, Bill Hyman <billhym...@yahoo.com> wrote:

> 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
>
> ______________________________________________
> 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.
>

        [[alternative HTML version deleted]]

______________________________________________
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