[R] Detect the presence of an object

Torsten Steuernagel Torsten.Steuernagel at gmx.de
Fri Jan 30 22:57:57 CET 2004


On 30 Jan 2004 at 12:58, Francisco J Molina wrote:

> 
> Is there a  function like "is.there" such that 
> 
> is.there ( a ) returns TRUE is object 'a' is in the current
> environment and FALSE otherwise?

Have you tried exists("a", inherits=FALSE) ?

- Torsten




More information about the R-help mailing list