Learn R Programming

stlcsb (version 0.1.2)

csb_categorize: Categorize CSB Call Types

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

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

Run this code
# NOT RUN {
csb_categorize(january_2018, var = problemcode, newVar = Category)

# }

Run the code above in your browser using DataLab