I am using rpy2 to call R function from python.
from rpy2.robjects import *
result=r.someFunctioninR() #someFunctioninR is a R function written by myself
if result==r('as.null()'):
do something
else:
do something else
The "result" returned by someFunctioninR()
can be either NULL or other format. result==r('as.null()')
does not work. Is there any other way I can get a True when result is NULL?