0

Is there an easy way to see if an object exists in R? I would love a function that returns TRUE if the object has been defined and FALSE if the object has not been defined. Thus far, everything I try returns

Error: object 'asdf' not found

I want a function that returns TRUE if the argument exists (e.g., does.exist(asdf) ) and returns FALSE if it does not exist.

Any ideas if there is such a thing or how I would make it?

tcarpenter
  • 265
  • 1
  • 2
  • 11

0 Answers0