| create_subgroup_indicator | R Documentation |
Parses factor definitions (e.g., "v1.1", "grade3.1") and creates a binary indicator for subgroup membership.
create_subgroup_indicator(df, sg_factors)
df |
Data frame containing the variables |
sg_factors |
Character vector of factor definitions |
Integer vector (1 = in subgroup, 0 = not in subgroup)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.