Learn R Programming

ore (version 1.7.4.1)

ore_lastmatch: Retrieve the last match

Description

This function can be used to obtain the "orematch" object, or list, corresponding to the last call to ore_search. This can be useful after performing a search implicitly, for example with %~%.

Usage

ore_lastmatch(simplify = TRUE)

Value

An "orematch" object or list. See ore_search

for details.

Arguments

simplify

If TRUE and the last match was against a single string, then the "orematch" object will be returned, instead of a list with one element.