please excuse me if my question is quite basic.
I created an empty data frame by df <- data.frame() and obviously the data frame is NULL (empty). when I try to
data.frame() creates an object that has a data frame class. Because the object exists, is.null will return FALSE. A NULL variable has no class and no contents.