cross: Run a crosstabular frequency for a single variable and a...

Description Usage Arguments Value

View source: R/crosstabs.R

Description

Run a crosstabular frequency for a single variable and a single group.

Usage

1
2
cross(dataset, variable, group, nas = T, wt = NULL, prompt = F,
  digits = 2)

Arguments

dataset

A dataframe.

variable

The unquoted name of a variable in the dataframe.

group

The unquoted name of a grouping variable in the dataframe.

nas

Boolean, whether or not to include NAs in the tabulation.

wt

The unquoted name of a weighting variable in the dataframe.

prompt

Boolean, whether or not to include the prompt in the dataframe.

digits

Integer, number of significant digits for rounding. Default is 2, which results in an integer percentage.

Value

A dataframe with the group name, group prompt, group value, group label, variable name, prompt, values, labels, counts, and percents.


y2analytics/y2clerk documentation built on Feb. 21, 2018, 5:37 p.m.