r user
2006-May-05 15:29 UTC
[R] function to check if an object is present, and if not, load it from my hard drive
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?
Chuck Cleland
2006-May-05 15:40 UTC
[R] function to check if an object is present, and if not, load it from my hard drive
?exists 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 >-- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894
Gabor Csardi
2006-May-05 15:46 UTC
[R] function to check if an object is present, and if not, load it from my hard drive
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
Uwe Ligges
2006-May-05 15:50 UTC
[R] function to check if an object is present, and if not, load it from my hard drive
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?Guess its name: exists() Uwe Ligges> ______________________________________________ > 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
Martin Maechler
2006-May-08 08:10 UTC
[R] function to check if an object is present, and if not, load it from my hard drive
>>>>> "UweL" == Uwe Ligges <ligges at statistik.uni-dortmund.de> >>>>> on Fri, 05 May 2006 17:50:22 +0200 writes:UweL> 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? UweL> Guess its name: exists() Further, if I guess correctly what you are thinking about, the next level would be to look at help(autoload) Martin