get_frequency: get_frequency

View source: R/get_frequency.R

get_frequencyR Documentation

get_frequency

Description

Get frequency distribution of non-numeric variables

Usage

get_frequency(df, vars, unique.threshold.pct = 0.8)

Arguments

df

A dataframe of variables

vars

A list of non-numeric variables to get frequencies for

unique.threshold.pct

A value between 0 and 1. If the number of unique values for a variable is > to this threshold, it will not output the frequency distribution.

Value

A list of two. Each being a dataframe. First dataframe will give the frequency distribution to the variables. The second dataframe will show the percent missing for each variable


cjodice10/eda documentation built on Feb. 7, 2023, 3:26 p.m.