word.ref {roxygen} | R Documentation |
Find the nth word in a string.
word.ref(string, n)
string |
the string to search in |
n |
the nth word to find |
A list containing:
start |
the first letter of the word. |
end |
the last letter of the word. |
Undefined if no such word; though end
may be less than
start
in such a case.