Paste n and percentage values together.
np(n, p, digits = 0, comma = FALSE)
Arguments
- n
Counts.
- p
Proportions.
- digits
Number of digits to use after the decimal point in percentages.
- comma
Option to use comma separator on thousands.
Value
Counts with proportions in brackets.
Examples
if (FALSE) { # \dontrun{
np(n, p, digits = 1)
} # }