procFreq: procFreq

Description Usage Arguments Author(s) Examples

View source: R/procFreq.R

Description

This function was created because the available options in R for frequency tables of 1 / 0 indicators was insufficient.

Usage

1
procFreq(data, vari_col, indic, group_col)

Arguments

data

The dataframe that contains the information you want

vari_col

The the variable column. This should be enclosed in quotations marks. For example, data$variable would be noted here as "variable"

indic

Optional parameter for the name of the indicator

group_col

Optional parameter.This would be the column used to stratify results.

Author(s)

J.W. Rozelle

Examples

1
2
3
4
5
6
7
8
9
# Get the mtcars data
data(mtcars)

# Run the simplest version of the variable
procFreq(mtcars, "am")


# Name the indicator and disaggregate by the cyl column
procFreq(data = mtcars, vari_col = "am", indic = "Indicator Description by cyl", group_col = "cyl")

jwilliamrozelle/figured documentation built on June 10, 2021, 5:32 p.m.