R/explore.R
varprop.Rd
Variance for proportion
varprop(x, na.rm = TRUE)
Input variable
If TRUE missing values are removed before calculation
varprop(c(rep(1L, 10), rep(0L, 10)))#> [1] 0.25