Add Number of Shelter Issues and Related Category
Source:R/add_shelter_issue_cat.R
add_shelter_issue_cat.Rd
This function calculates the number of shelter issues and categorizes them based on predefined thresholds. It also handles undefined and other responses.
Arguments
- df
A data frame containing shelter issue data.
- shelter_issue
Component column: Shelter issues.
- none
Response code for no issue.
- issues
Character vector of issues.
- undefined
Character vector of undefined responses codes (e.g. "Prefer not to answer").
- other
Character vector of other responses codes (e.g. "Other").
- sep
Separator for the binary columns.