[R] How to check the two different nulls?

blue sky bluesky315 at gmail.com
Tue Feb 16 01:09:04 CET 2010


x=list(a=1,b=NULL)
is.null(x$b)
is.null(x$c)

Both the above two commands give me TRUE, but in the first one, b is
NULL, in the second one, c doesn't exist. Are there functions that can
help me distinguish the two different nulls?



More information about the R-help mailing list