[R] gsub pattern?

Christian Schulz ozric at web.de
Fri Jan 21 10:53:42 CET 2005


Hi,

search in web for regular expressions i get the information that
the line  below replace all  AUTO string's like AUTOBAHN
,AUTORENNEN  with 1 but nothing happend.
Using the [] in the pattern it works like i'm expected, but i didn't
want single character replacment. Where is my mistake?

bcode <- gsub("/^AUTO.*/","1",MyStringVector,ignore.case=T,extended=T)

many thanks & regards,
christian




More information about the R-help mailing list