count_observations: Count number of observations in selected groups.

Description Usage Arguments Value Examples

View source: R/explore_functions.R

Description

Dataset is grouped by grouping_cols and for each combination of values number of observations in each group is calculated.

Usage

1
count_observations(dataset, grouping_cols)

Arguments

dataset

survey dataset

grouping_cols

column name or vector of column names used for creating groups

Value

data frame with counts

Examples

1
2
count_observations(survey, "Gender")
count_observations(survey, c("Gender", "Age"))

jjankowiak/exploreNHANES documentation built on June 9, 2018, 4:47 a.m.