[R] function to check if an object is present, and if not, load it from my hard drive

Gabor Csardi csardi at rmki.kfki.hu
Fri May 5 17:46:31 CEST 2006


a <- 1
exists("a")
rm(a)
exists("a")

Gabor

On Fri, May 05, 2006 at 08:29:04AM -0700, r user wrote:
> I want to check if an "object" (dataset, vector, etc)
> is “present”.  If it is present, I will do nothing. 
> If it is not present, I will load it from my hard
> drive.
> 
> Is there function to determine if an object is
> present?
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

-- 
Csardi Gabor <csardi at rmki.kfki.hu>    MTA RMKI, ELTE TTK




More information about the R-help mailing list