garner-code / PSY2R

translating PSY to R
3 stars 16 forks source link

need some example code on how to check if an object or variable exists #48

Closed garner-code closed 1 week ago

MashaPtukha commented 1 week ago

something like

if (exists("my_var")) { print("Variable exists") } else { print("Variable does not exist") }