Match all positions of an argument
Usage
matchAll(x, table, ...)
# S4 method for class 'character,character'
matchAll(x, table, simplify = FALSE)
# S4 method for class 'factor,factor'
matchAll(x, table, simplify = FALSE)
# S4 method for class 'numeric,numeric'
matchAll(x, table, simplify = FALSE)Value
list.
A list of positional vectors corresponding to values defined in table the
same size as x.
Details
matchAll() behaves like base match(), but is intended to return a list
of all position matches of the argument defined in x.