# NOT RUN {
# Vector of cases only.
Npct(c(TRUE, FALSE, TRUE))
# Cases with indices
Npct( c(TRUE,FALSE,TRUE,FALSE,TRUE), c(TRUE,TRUE,TRUE,FALSE,FALSE))
# Successes/Total
Npct(2L, 3L)
# Count + percent directly, count must be integerish.
Npct(2, 2/3)
# }
Run the code above in your browser using DataLab