Learn R Programming

socialmixr (version 0.7.0)

n_participants_per_age_group: Count participants per age group

Description

Internal helper used by contact_matrix() to build its per-age-group participant counts. A thin wrapper around n_participants_per_group() with the default age-only grouping.

Usage

n_participants_per_age_group(participants)

Value

a long data.table with columns age.group, participants, proportion

Arguments

participants

the participants data.table