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