[R] assigning NULL to a list element

David Winsemius dwinsemius at comcast.net
Sat Feb 18 03:17:19 CET 2012


On Feb 17, 2012, at 8:51 PM, Benilton Carvalho wrote:

> tmp0 <- list(a=1, b=NULL, c=3)


 > length(tmp0) <- 4
 > tmp0
$a
[1] 1

$b
NULL

$c
[1] 3

[[4]]
NULL

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list