Learn R Programming

Kmisc (version 0.4.0-1)

without.re: Remove Elements from a Named Object with Regular Expressions

Description

Remove elements from an Robject, whereby elements in the object whose names attribute matches the regular expression supplied are remove

Usage

without.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.

See Also

grep, regex