[R] Detect the presence of an object
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Sat Jan 31 00:28:46 CET 2004
Francisco J Molina <fjmolina at ams.ucsc.edu> writes:
> 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?
exists("a",inherits=FALSE)
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list