Skip to contents

Get all select multiple and parent other questions

Usage

get_other_parent(.tbl, other)

Arguments

.tbl

A tibble of data

other

A character vector of the start of all other column names. E.g., other = "other_"

Value

A character vector of other questions

Details

This function has a tibble and the associated survey sheet as inputs, as well as the beginning of the "other" character string. It returns all columns that exist in the tibble and are either a multiple choice or a parent other question. This allows then to compute these columns with impactR::count_occ after parent question may have been recoded.