Description Usage Arguments Value Author(s) See Also Examples
Function to extract a certain index from gregexpr()
.
1 | gregexprind(pattern, text, n, ...)
|
pattern |
Character string containing a regular expression to be searched in |
text |
Character vector where the search is performed. |
n |
Numeric value or character string |
... |
Arguments passed to function |
Numeric vector of length length(text)
.
Sven E. Templer
See gregexpr for further information on arguments.
See regex for the use of regular expressions.
1 2 3 4 5 6 7 | #
gregexprind(c("a"),c("ababa","ab","xyz",NA), 1)
gregexprind(c("a"),c("ababa","ab","xyz",NA), 2)
gregexprind(c("a"),c("ababa","ab","xyz",NA), "last")
#
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.