get_n_days: Aggregation functions

View source: R/1_aggregate.R

get_n_daysR Documentation

Aggregation functions

Description

A function used by aggregate_sequences to get the unit of aggregation

Usage

get_n_days(unit, n_units)

Arguments

unit

The unit of aggregation. Takes one of c("day", "week", "month", "6 months", "year")

n_units

The number of units to aggregate

Value

Number of days to aggregate in the input data

Examples

get_n_days("week", 2)

pinformatics/approxmapR documentation built on April 1, 2022, 8:52 p.m.