On Fri, 2004-01-30 at 14: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?
>
> Thank you.
> Francisco J. Molina
See ?exists
This requires that the object of interest is quoted:
> a <- "I am here"
> exists(a)
[1] FALSE
> exists("a")
[1] TRUE
There are other arguments to the function to indicate where to search,
etc.
HTH,
Marc Schwartz
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html