Description Usage Arguments Value Author(s)
Extract substring(s) that match a regular expression in a character vector
1 |
pattern |
character string specifying regular expression to be matched |
x |
string or character vector of strings to be searched |
L.trim |
integer; number of characters to strip from the start of the matched substring |
R.trim |
integer; number of characters to strip from the end of the matched substring |
... |
other arguments passed to regexpr() |
matched: a character vector the same length as x containing substrings of that match the pattern. Only the first match found is returned. If no match is found, an empty string ("") is returned in that element.
M.W.Rowe, mwr.stats@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.