[R] substituting an object not found

Seth Falcon sfalcon at fhcrc.org
Fri Jan 27 15:54:17 CET 2006


On 27 Jan 2006, mi2kelgrum at yahoo.com wrote:

> Is there any function in R like
>
> is.not.found(x, y)  
>
> meaning if you can't find object x, then use object
> y??

Along with exists(), you might find mget() useful since it allows you
to specify an ifnotfound value.

--
+ seth




More information about the R-help mailing list