I want to check if a variable is '' or 'NULL'. I did below:
x =NULL #or ''
if(is.null(x) || x=='') {
print('nothing')
} else {
print(x)
}
My question is what is the best way to check this condition? I feel like there is some better way to do this...