overtime_by_interval: overtime_by_interval

Description Usage Arguments Value Examples

Description

**By time interval, designed to append on numerous summary statistics as columns. Then nest into a tibble with grouped variables in 'data' being the identifier(s). Based on 'intervalType' and 'intervalLength' parameters, will aggregate and create columns accordingly** To allow further appending, the newly created nested tibble and the original data will be return in a list.

Usage

1
overtime_by_interval(data, intervalType, intervalLength)

Arguments

data

Nested tibble or non-nested tibble with the following columns: * A unique identifier (usually made by a 'group_by“ call) * A continious date column * A numeric column, one observation per date per unique identifier

intervalType

Must be one of following strings: * 'years' * 'months' * 'weeks' * 'days'

intervalLength

Must be positive integer excluding zero

Value

List that contains [nestedTibble, tibble]

Examples

1

clarkjoe/overtime documentation built on May 9, 2019, 8:13 a.m.