Answers for "how to clear environment in r"

3

r remove all environment

rm(list = ls())
Posted by: Guest on April-09-2020
2

remove everything in r

#in R
rm(list=ls()) 
rm(list=setdiff(ls(), c("x","y")))
Posted by: Guest on July-10-2020
2

r clean environment

rm(list = ls())
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language