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.
1 | charlocate(needle, haystack)
|
1 2 3 | ## Not run:
charlocate("19","x190019xxx")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.