[Rd] possible bug: NULL equality in lists.

Seth Falcon sfalcon at fhcrc.org
Tue Mar 7 17:56:32 CET 2006


Uwe Ligges <ligges at statistik.uni-dortmund.de> writes:
> These are all dangerous, hence use the "safe" ways:
>
> sapply(a, is.null)
> sapply(a, identical, "NULL")
> sapply(a, is.na)
> sapply(a, identical, "NA")

Point taken, but is the behavior of as.character correct?

as.character(list(NULL))

as.character(NULL)

+ seth



More information about the R-devel mailing list