Learn R Programming

socialmixr (version 0.7.0)

grouping_predicates: Predicates classifying a by entry

Description

is_stem_entry() returns TRUE for an unnamed single-element character string (a stem like "age" or "gender"). is_explicit_entry() returns TRUE for a two-element character vector with names "part" and "cnt". Used by resolve_one_grouping() to choose the right constructor.

Usage

is_stem_entry(entry)

is_explicit_entry(entry)

Value

a logical scalar

Arguments

entry

one element of the user-facing by argument