[R] gsubfn, strapply, REGEX Problem

Johannes Graumann johannes_graumann at web.de
Tue Oct 28 12:39:14 CET 2008


Hi all,

I swear this used to work:

library(gsubfn)
strapply("S(AC,P)TVDK(8)EELVQK(8), ".[(].{1,2}[)]|.")[[1]]

But somewhere along the update path it stopped ... now giving me this 

Error in base::gsub(pattern, rs, x, ...) : 
  invalid backreference 2 in regular expression

Can't figure it out. What am I doing wrong?

Thanks for any hints, Joh



More information about the R-help mailing list