Skip to content

Detect the presence of an object

8 messages · Francisco J Molina, Marc Schwartz, Jeff Gentry +5 more

#
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?

Thank you.
Francisco J. Molina
#
On Fri, 2004-01-30 at 14:58, Francisco J Molina wrote:
See ?exists

This requires that the object of interest is quoted:
[1] FALSE
[1] TRUE

There are other arguments to the function to indicate where to search,
etc.

HTH,

Marc Schwartz
#
exists()
#
try the function exists()
On Fri, 30 Jan 2004, Francisco J Molina wrote:

            
Paulo Justiniano Ribeiro Jr
Departamento de Estat?stica
Universidade Federal do Paran?
Caixa Postal 19.081
CEP 81.531-990
Curitiba, PR  -  Brasil
Tel: (+55) 41 361 3471
Fax: (+55) 41 361 3141
e-mail: pj at est.ufpr.br
http://www.est.ufpr.br/~paulojus
#
Have you considered "exists" or "missing"? 

      hope this helps.  spencer graves
Francisco J Molina wrote:

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

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

- Torsten
#
Francisco J Molina <fjmolina at ams.ucsc.edu> writes:
exists("a",inherits=FALSE)