Displaying 2 results from an estimated 2 matches for "hydrolase".
2012 Jun 06
2
how to remove part of the string
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
2006 Aug 21
1
Escaping " ' " character
Dear all:
I have a character object x with ' (single-quote)
character.
x <- c('"hydrolase activity","actin
binding","3',5'-cyclic-nucleotide phosphodiesterase
activity")
I want to write a function that will identify ' and
replaces with \'
myf <- function(term){
if (grep("'",term))
{ sub("'","\'",ter...