how to remove something from environment in r code example
Example 1: r remove all environment
rm(list = ls())
Example 2: delete variable from environment r
remove(..., list = character(0), pos = -1,
envir = as.environment(pos), inherits = FALSE)
rm (..., list = character(0), pos = -1,
envir = as.environment(pos), inherits = FALSE)