word.ref {roxygen}R Documentation

Find the nth word in a string.

Description

Find the nth word in a string.

Usage

word.ref(string, n)

Arguments

string the string to search in
n the nth word to find

Value

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.


[Package roxygen version 0.1 Index]