Skip to contents

Recode & Collapse

Transform numeric survey codes into standardized values.

recode_binary()
Collapse categories into 0/1
recode_sentinel()
Replace sentinel values with NA
collapse_likert()
Collapse Likert scales

Label

Convert numeric codes to human-readable strings.

label_binary()
Label binary columns with descriptive strings
label_likert()
Label Likert-scale columns with descriptive strings

Combine & Count

Aggregate multiple binary indicators into summary columns.

combine_binary()
Combine binary indicators with OR logic
count_binary()
Count how many binary indicators are active

Impute & Propagate

Fill or override values based on flag or parent columns.

impute_from_flag()
Replace NA with a value when a flag column indicates the skip is valid
propagate_parent()
Push parent variable's special values to child columns

Filter

Conditionally set variables to NA for ineligible respondents.

apply_filter()
Conditionally set variables to NA when a condition is not met