Finds indices of a subset of files whose names match a given set of names or name patterns.
1 2 3
If an element of
patterns contains a comma, then that element
is matched against the
*getFullNames(), otherwise it is
First each pattern is matched by regular expression rules, and if
there is not match, then by fixed strings.
vector of length K with elements in
*length()] or (integer)
NA (for non-matched names).