Hi

I have a list :

mylist <- list( a = NULL, b = 1, c = 2 )

> mylist[1]
$a
NULL

> is.null(mylist[1])
[1] FALSE

> is.null(mylist$a)
[1] TRUE

why? I need to use mylist[1] 
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to