Displaying 1 result from an estimated 1 matches for "g9ss7ba01d15ec".
2012 Mar 02
2
Why do my regular expressions require a double escape \\ to get a literal??
...ly misfortunate enough to have to use regular expressions to
sort out some data in R.
I'm working on a data file which contains taxonomical data of bacteria
in hierarchical order.
A sample of this file can be generated using:
tax.data <- read.table(header=F, con <- textConnection('
G9SS7BA01D15EC Bacteria(100) Cyanobacteria(84) unclassified
G9SS7BA01C9UIR Bacteria(100) Proteobacteria(94)
Alphaproteobacteria(89)
G9SS7BA01CM00D Bacteria(100) Proteobacteria(99)
Alphaproteobacteria(99)
'))
close(con)
What I try to do is to remove the parenthesis and the number in...