tab_summary: Summary table is created, automatically adding marginal

Description Usage Arguments Value Examples

View source: R/library neale.R

Description

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

Usage

1
2
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/neale documentation built on May 23, 2017, 11:37 a.m.