tab: Tab(ulate), similar to Stata (orders by x, or x,y). Requires...

Description Usage Arguments Value Examples

View source: R/tab_function.R

Description

Tab(ulate), similar to Stata (orders by x, or x,y). Requires data.table. Data argument defaults to dt, for easy usage tab("x").

Usage

1
tab(x = NULL, y = NULL, df = dt)

Arguments

x

Variable to be tabulated

y

Optional second variable

df

the dataframe

Value

Table of (N) cases ordered by x or x, y.

Examples

1
tab()

edvinsyk/etools documentation built on Jan. 8, 2022, 1:31 p.m.