Skip to contents

Get absolute frequency of a variable grouped by another variable

Usage

grouped_count(data, variable, grouping_variable)

Arguments

data

Dataset containing the variables.

variable

Character vector with variable name to be counted.

grouping_variable

Character vector with grouping variable name.

Value

A tibble with the absolute frequency of the chosen variable grouped by the grouping variable