Skip to content
Back to formatted view

Raw Message

Message-ID: <x2oeslj9sh.fsf@biostat.ku.dk>
Date: 2004-01-30T23:28:46Z
From: Peter Dalgaard
Subject: Detect the presence of an object
In-Reply-To: <16410.50557.738399.755782@dhcp-63-193.cse.ucsc.edu>

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