procMeans: procMeans

Description Usage Arguments Author(s) Examples

View source: R/procMeans.R

Description

This function was created because the available options in R for simple means tables indicators didn't produce the output I wanted. This function will return a dataframe.

Usage

1
procMeans(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
procMeans(mtcars, "mpg")


# Name the indicator and disaggregate by the cyl column
procMeans(data = mtcars, vari_col = "mpg", indic = "Average MPG by cyl", group_col = "cyl")

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