[R] rm(list=ls())

Wet Bell Diver wetbelldiver at gmail.com
Tue Mar 6 00:29:08 CET 2012


R-2.14.2, Win7 x64

Dear list,

I have the habit of including rm(list=ls()) at the top of most of my 
scripts. However, I wonder whether rm(list=ls()) gives the exact same 
result as closing R and starting again fresh.
In other words, is it possible that there will be differences on how a 
script runs under a fresh start of R versus when I "only" use 
rm(list=ls()) , or should both approaches give the exact same starting 
situation every time?

Thanks,
Peter



More information about the R-help mailing list