Learn R Programming

socialmixr (version 0.7.0)

stem_grouping: Build a grouping triple from a stem string

Description

Internal constructor used by resolve_one_grouping() for the single-string form of a by entry. Special-cases "age" to the columns produced by assign_age_groups(); for any other stem "<x>" returns list(part = "part_<x>", cnt = "cnt_<x>").

Usage

stem_grouping(stem)

Value

a list(name, part, cnt) triple

Arguments

stem

a single character string