I am periodically cleaning the memory in R using a call to rm(list=ls()). Do I need to call the garbage collector gc() after that?
rm(list=ls())
gc()
What is the difference between these 2 functions? Does gc() call rm() for certain variables?
rm()