tab_summary: Summary table is created, automatically adding marginal

Description Usage Arguments Value Examples

Description

This function is still incomplete, for now it only does counts and column total. NEED TO UPDATE!

Usage

1
tab_summary(df = NULL, reg.exp_lin = NULL, reg.exp_col = NULL, wgt = NULL)

Arguments

df

A dataframe containing the variables to be used in the analysis.

reg.exp_lin

A regular expression identifying the variables that should be used to create the lines of the table.

reg.exp_col

A regular expression identifying the variables that should be used to create the columns of the table.

wgt

A string identifying the weight variable. If NULL weights are ignored.

Value

A (dataframe) with the summary table.

Examples

1
df.tab <- tab_summary(df=df,reg.exp_lin='^P1[0-4]$',reg.exp_col='^P2[6-9]$',wgt=NULL)

neale-eldash/pd documentation built on June 26, 2021, 10:47 a.m.