Skip to contents

This function removes specified objects from the global environment in R.

Usage

remove_env_objects(remove_objects = NULL)

Arguments

remove_objects

A character vector specifying the names of objects to be removed. If NULL (default), no objects are removed.

Value

This function does not return anything. It removes the specified objects from the global environment.

References

Remember to add reference here

Examples

if (FALSE) {
# create some objects
x <- 1:10
y <- letters
z <- rnorm(100)

# remove 'x' and 'y'
remove_env_objects(c("x", "y"))
}