
Last chance! 50% off unlimited learning
Sale ends in
TRUE
.
quantify(object)
TRUE
elements
it <- iterators::iter(c(TRUE, FALSE, TRUE))
quantify(it) # 2
set.seed(42)
x <- sample(c(TRUE, FALSE), size=10, replace=TRUE)
quantify(x) # Equivalent to sum(x)
Run the code above in your browser using DataLab