return_proportions: Return group proportions

View source: R/proportions.r

return_proportionsR Documentation

Return group proportions

Description

Give proportions and counts for each category of a given group in a long form dataset.

Usage

return_proportions(dataframe, variable, precision = 2)

Arguments

dataframe

The dataframe containing all longitudinal measures.

variable

The variable you want to return the category proportions for.

precision

The number of decimal points to round to.

Value

A datafram with one entry per category of the variable and its proportion.


lukehannan/lumisc documentation built on May 9, 2022, 12:59 p.m.