okeep | R Documentation |
Esta funcion borra o conserva objetos del gloval environment se puede conservar objetos puntuales por nombre y por clase el resto se borra del entorno.
okeep(keep = NULL, dframe = FALSE, fun = FALSE, char = FALSE, num = FALSE)
keep |
Character vector with the name of the objects to keep |
dframe |
Logical, set TRUE for keep all "data frames" in the environment |
fun |
Logical, set TRUE for keep all "functions" in the environment |
char |
Logical, set TRUE for keep all "character objects" in the environment |
num |
Logical, set TRUE for keep all "numeric objects" in the environment |
Just drop any object not included in the parameters
# Create some objects and keep one and data frames # cars <- mtcars # a <- 1 # b <- 2 # c <- "qwerty" # d <- data.frame(d = 123) # e <- "asdfg" # f <- TRUE # okeep(keep = c("a", "f"), dframe = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.