csb_categorize: Categorize CSB Call Types

Description Usage Arguments Value Examples

Description

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.

Usage

1
csb_categorize(.data, var, newVar)

Arguments

.data

A tibble or data frame

var

Name of existing column containing problem codes

newVar

Name of output variable to be created with category string

Value

Returns a tibble with the string vector added as a new variable.

Examples

1
csb_categorize(january_2018, var = problemcode, newVar = Category)

stlcsb documentation built on May 2, 2019, 4 a.m.