group_by_primary_sec: Groups data by a primary_col and a sec_col.

Description Usage Arguments Value See Also

Description

Counts primary_col, sec_col responses; if a user has give more than one response, counts them as "Mixed".

Usage

1
group_by_primary_sec(x, arrange_by_total = FALSE, mode_by_user = TRUE)

Arguments

x

dataframe containing primary_col and sec_col.

arrange_by_total

logical, whether to arrange rows by total number in each.

mode_by_user

logical, whether to consolidate multiple responses from the same user – if responses vary, they are replaced with "Mixed".

Value

A dataframe with all distinct variants of primary_col and sec_col (and maybe "Mixed" for either or both too) and the number of responses of that combo.

See Also

understanding_by_awareness uses group_by_primary_sec()'s output as its primary input.


IskanderBlue/morseldash documentation built on Oct. 30, 2019, 7:24 p.m.