locate_pattern | R Documentation |
Search each line in .lines
for the regex .pattern
and return
the first index of a match. Yields an error if the pattern cannot be located.
locate_pattern(.lines, .pattern)
.lines |
A character vector. |
.pattern |
Pattern to look for. |
An integer value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.