At the risk of stating the obvious: - rm(.....) # clears specific objects out of memory as soon as they're no longer needed in the routine.
- sapply(ls(), function(x) object.size(get(x))) #lists all objects with the memory each is using. - rm(list=ls()) #clears out all objects, e.g. before the routine, to free up memory. Guy S. Few wrote: > > ## PROBLEM: > > I have memory limit problems. R and otherwise. My dataframes for > merging or subsetting are about 300k to 900k records. > I've had errors such as vector size too large. gc() was done.....reset > workspace, etc. > -- View this message in context: http://www.nabble.com/R-2.9.2-memory-max---object-vector-size-tp25390745p25398830.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.