cut_point: cut_point

Description Usage Arguments Value Examples

Description

Designed to implement cut_point algorithin on column

Usage

1
2
cut_point(data, movAvg = 21, startQuant = 0.2, movAvg_zeroDays = 1,
  dialBack = 0)

Arguments

data

Tibble/Data Frame with the following columns:

  • Account Number (unique identifier)

  • Date

  • Count

movAvg

Moving average

  • Default is 21

startQuant

Quantile percentage to determine start date cut_point

  • Default is 0.2

movAvg_zeroDays

Number of consecetive moving averages evaluated at zero to begin end date cut_point process

  • Defaults to 1

dialBack

Number of days to 'dialBack' to determine a new end date cutPoint

  • Defaults to 0

Value

filtered tibble with cut_point algorithim performed

Examples

1
test

HSPS-DataScience/tsCogs documentation built on May 24, 2019, 8:56 a.m.