I have a vector of gene symbols, some of which have multiple aliases. In the
case of an alias, they are separated by ' \\\ '.
Here is a real world example, which would represent one element of my
vector:
Eif4g2 /// Eif4g2-ps1 /// LOC678831
What I would like to do is input the vector into a
You need a escape before each backslash:
a - c('a \\ b', 'a \\ b')
cat(a, \n)
You can write in this form:
strsplit(a, .*\\.* )
On Thu, Aug 27, 2009 at 10:03 PM, Mark Kimpel mwkim...@gmail.com wrote:
I have a vector of gene symbols, some of which have multiple aliases. In
the
Thanks Henrique. I had actually tried using 6 back-slashes but didn't know
to use 'cat' to see the non-escaped representation (see below to see my
original confusion). Your strsplit, of course, works great. Thanks again!
a
[1] a \\ b a \\ b
cat(a)
a \\\ b a \\\ b
3 matches
Mail list logo