x = c(rpois(n = 20L, lambda = 2), NA_integer_)
.sumstat(x)
# factor
x = state.region
x[2L] = NA_integer_
.sumstat(x)
# binary
.sumstat(c(TRUE, FALSE, TRUE, NA))
.sumstat(c(TRUE, FALSE, TRUE))
.sumstat(c(FALSE, FALSE, NA))
.sumstat(c(FALSE, FALSE, FALSE))
.sumstat(c(NA, NA, NA))
Run the code above in your browser using DataLab