R/counts_and_pcts.R
counts_and_pcts.Rd
Compute and paste counts and proportions
counts_and_pcts(x)
a vector
a character string
x <- test_data$`ataxia severity*` x |> counts_and_pcts() #> 414 (69.6%) #> 93 (15.6%) #> 43 (7.2%) #> 33 (5.5%) #> 12 (2%)