powered by
csb_categorize provides general categories for the CSB data based on problem code. These were created based on a review of the call data in mid-2018.
csb_categorize
csb_categorize(.data, var, newVar)
A tibble or data frame
Name of existing column containing problem codes
Name of output variable to be created with category string
Returns a tibble with the string vector added as a new variable.
# NOT RUN { csb_categorize(january_2018, var = problemcode, newVar = Category) # }
Run the code above in your browser using DataLab