Skip to contents

Compute and paste counts and proportions

Usage

counts_and_pcts(x)

Arguments

x

a vector

Value

a character string

Examples

x <- test_data$`Ataxia: severity*`
x |> counts_and_pcts()
#> 406 (69.2%)
#> 93 (15.8%)
#> 44 (7.5%)
#> 33 (5.6%)
#> 11 (1.9%)