Learn R Programming

eponge (version 0.1.0)

erase_df: Remove all the `data.frame` objects

Description

Remove all the `data.frame` objects

Usage

erase_df(pattern = NULL, envir = parent.frame(), verbose = FALSE)

Arguments

pattern

regex pattern to select a set of objects; default: NULL

envir

environment; default: caller environment

verbose

print removed objects' names

Value

NULL (function returns nothing)

Details

Function can be used with envir = globalenv() argument.

Examples

Run this code
# NOT RUN {
cars.2 <- cars
test_fun <- function(x) x + 2
value <- 7
erase_df(verbose = TRUE)
# }

Run the code above in your browser using DataLab