Rdocumentation
powered by
Learn R Programming
Kmisc (version 0.1.0)
without.re: Remove Variables from a List / Data Frame, with Regular Expressions
Description
Remove variables from a
list
/
data.frame
, whereby the variables not matching
pattern
are returned.
Usage
without.re(dat, pattern)
Arguments
dat
list
or
data.frame
object, or other similar object with a
names
attribute
pattern
a regular expression pattern to match against
names(dat)
See Also
grep
regex