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()
#> 414 (69.6%)
#> 93 (15.6%)
#> 43 (7.2%)
#> 33 (5.5%)
#> 12 (2%)