[R] character position

Paulo Cardoso pecardoso at netcabo.pt
Thu Sep 18 10:51:04 CEST 2008


Hi,

I'm not being able to capture a position of a 'string' in a character
string.

In this example: 'There are 20 species in this grid'

I would like to capture the string (number) after 'are' and before
'species'. Consider they do not change. I wouldn't like to use substr
because stop position may change.

Thanks

Paulo



More information about the R-help mailing list