rm2 | R Documentation |
remove object(s) matching a pattern from an environment. The arguments pos, envir and inherits are passed to remove. A prompt ask to confirm the removal of variables in case the pattern matches somethings the user wants to keep.
rm2(pattern, pos = -1, envir = NULL, inherits = FALSE)
pattern |
a regular expression. Only names matching pattern will be removed. |
pos |
where to do the removal. By default, uses the current environment. |
envir |
the environment to use. |
inherits |
should the enclosing frames of the environment be inspected? |
## Not run:
x <- letters
rm2("^x$")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.