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

From: Gabor Csardi <csardi_at_rmki.kfki.hu>
Date: Sat 06 May 2006 - 01:46:31 EST

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@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@rmki.kfki.hu>    MTA RMKI, ELTE TTK

______________________________________________
R-help@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
Received on Sat May 06 02:10:04 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 06 May 2006 - 04:10:08 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.