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/infoscout documentation built on May 20, 2019, 5:42 p.m.