[R] Pattern match

Neeti nikkihathi at gmail.com
Wed Apr 20 19:17:09 CEST 2011


Hi ALL,

I have very simple question regarding pattern matching. Could anyone tell me
how to I can use R to retrieve string pattern from text file.  for example
my file contain following information

SpeciesCommon=(Human);SpeciesScientific=(Homo
sapiens);ReactiveCentres=(N,C,C,C,+
H,O,C,C,C,C,O,H);BondInvolved=(C-H);EzCatDBID=(S00343);BondFormed=(O-H,O-H);Bond+
255B);Cofactors=(Cu(II),CU,501,A,Cu(II),CU,502,A);CatalyticSwissProt=(P25006);Sp+
eciesScientific=(Achromobacter
cycloclastes);SpeciesCommon=(Bacteria);ReactiveCe+

and I want to extract “SpeciesScientific = (?)” information from this file.
Problem is in 3rd line where SpeciesScientific word is divided with +.  

Could anyone help me please?
Thank you


--
View this message in context: http://r.789695.n4.nabble.com/Pattern-match-tp3463625p3463625.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list