charlocate: Finds position of a substring needle inside a longer string...

Description Usage Examples

Description

Finds position of a substring needle inside a longer string haystack. Can return more than one position if the needle appears more than once. Returns 0 if no matches. The input are atomic: this is not vectorized.

Usage

1
charlocate(needle, haystack)

Examples

1
2
3
## Not run: 
charlocate("19","x190019xxx")
## End(Not run)

forestgeo/ctfs documentation built on May 3, 2019, 6:44 p.m.