Skip to content
Prev 369803 / 398503 Next

is.null(mylist[1]) and is.null(mylist$a) returns different values

ce
Hi

I have a list :

mylist <- list( a = NULL, b = 1, c = 2 )
$a
NULL
[1] FALSE
[1] TRUE

why? I need to use mylist[1]