[R] gsub pattern?
Christian Schulz
ozric at web.de
Fri Jan 21 11:14:45 CET 2005
many thanks
..the different styles from linux to r-project a little confusing for me :-(
christian
Peter Dalgaard wrote:
>Christian Schulz <ozric at web.de> writes:
>
>
>
>>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)
>>
>>
>
>What are the "/"-es for?
>
>
>
More information about the R-help
mailing list