remove variables environment r code example
Example 1: r clean 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)