ron-r
5/4/2014 - 2:54 PM

memory size by object and how to remove specific one or more

memory size by object and how to remove specific one or more

sapply(ls(), function(x) object.size(get(x)))


rm(list=(ls()[ls()="v"])) # this will take out all object named V

rm(list=(ls()[ls()!="v"])) # this will take out all object that are not V