search for: 9ewww

Displaying 1 result from an estimated 1 matches for "9ewww".

Did you mean: ewww
2011 Dec 09
2
unexpected behaviour of sub() / usage of regexp
Dear R users, the way I understand the documentation of sub() and regexp the following code: sub('[[:digit:]]{1,2}', '', '9ewww') ... should yield: 'ewww' It returns, however: 'www' Why is this the case? My code should just substitute 1 (minimum) or up to 2 (maximum) digits, i.e. numbers and not the 'e' in the string. Do I misinterpret something here? Thanks for any ideas Jannis >...