extract.re: Extract Elements from a Named Object with Regular Expressions
Description
Extract elements from an Robject, whereby elements in
the object whose names attribute matches the regular
expression supplied, are returned.Usage
extract.re(x, pattern, perl = TRUE, ...)
Arguments
x
An Robject with a names
attribute.
pattern
a regular expression pattern to match
against names(x)
.
perl
boolean. use perl-compatible regular
expressions?
...
optional arguments passed to grep
.