Description Usage Arguments Details Value Examples
View source: R/erase-by-type.R
Remove (all) functions from environment
1 2 | erase_functions(pattern = NULL, envir = parent.frame(),
verbose = FALSE)
|
pattern |
regex pattern to select a set of objects; default: NULL |
envir |
environment; default: caller environment |
verbose |
print removed objects' names |
Function can be used with envir = globalenv() argument. Be careful: uncontrolled use may cause undesired side effects.
NULL (function returns nothing)
1 2 3 4 5 6 | create_data <- function() data.frame(a = 1:10, b = 11:20)
x <- cars
y <- 1:20
z <- function(x) x +2
erase_functions()
ls()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.