freq_ms: Run frequencies for multiple select survey questions.

Description Usage Arguments Value

View source: R/frequencies.R

Description

Run frequencies for multiple select survey questions.

Usage

1
2
freq_ms(dataset, ..., wt = NULL, var_name = NULL, prompt = F,
  digits = 2)

Arguments

dataset

A dataframe.

...

The unquoted names of a set of variables in the dataframe that represent a single multiple select question on a survey. Each variable should be encoded as non-NA for a selection, NA for no selection.

wt

The unquoted name of a weighting variable in the dataframe.

var_name

An optional variable name to assign to the results. If omitted, it will derive a name by slicing off _[digit] suffixes.

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 variable names, prompts, values, labels, counts, and percents.


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