calc_props: Calculate proportions

Description Usage Arguments Value Examples

View source: R/helper_functions.R

Description

This function calculates variable proportions for each column in a dataframe

Usage

1
calc_props(df, exclude.cols)

Arguments

df

A dataframe containing variables to calculate proportions from

exclude.cols

A vector of columns to be excluded

Value

A dataframe with variabes, levels, and proportions

Examples

1
calc_props(df, 'user_id')

cchoe/numerator documentation built on July 25, 2020, 1:52 a.m.