Quantcast
Channel: How to check if object (variable) is defined in R? - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Answer by Sebastian Tacora for How to check if object (variable) is defined in R?

$
0
0

If you don't mind using quotes, you can use:

exists("x")

If you don't want to use quotes you can use:

exists(deparse(substitute(x)))


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>