Learn R Programming

stlcsb (version 0.1.2)

csb_canceled: Remove Canceled Calls for Service

Description

Subsets data to remove any call with a date and time canceled.

Usage

csb_canceled(.data, var, drop = TRUE)

Arguments

.data

A tibble or data frame

var

Name of the column containing cancellation timestamps

drop

A logical scalar; if TRUE, removes the now empty column that had contained cancellation date and time, otherwise if FALSE the empty column is retained.

Value

Returns a tibble with the rows containing dates and times for the given variable removed.

Examples

Run this code
# NOT RUN {
csb_canceled(january_2018, var = "datecancelled")
csb_canceled(january_2018, var = "datecancelled", drop = FALSE)

# }

Run the code above in your browser using DataLab