pos | R Documentation |
pos is used to find the position of a specific char or pattern into a string
If pattern is a single character, the first position of this character in the searched
string is returned
If pattern is a regular expression, the result is 0 if the expression is not verified
or the position of the first pattern in the string stosearch
pos(pattern, stosearch)
pattern |
A pattern to search in stosearch |
stosearch |
A character string |
Position of pattern in stosearch
pos("/","test/string")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.