powered by
gregexpr()
gregexprind(pattern, text, n, ...)
text
"last"
n
pattern
length(text)
# 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") #
Run the code above in your browser using DataLab