I think look at the manual
Is.null(mylist[[1]])
Will work
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of ce
Sent: 15 June 2017 16:33
To: r-help at r-project.org
Subject: [R] is.null(mylist[1]) and is.null(mylist$a) returns different values
Hi
I have a list :
mylist <- list( a = NULL, b = 1, c = 2 )