BinDates: Date Binning

Description Usage Arguments

View source: R/format-date.R

Description

This function takes a vector of dates and rolls them up to the specified time unit, setting all smaller increments to 0 or 1 as applicable.

Usage

1
BinDates(date, by = "month", each = 1)

Arguments

date

Date to be parsed

by

Level at which to aggregate, such as hour or day; defaults to month

each

Number of by periods to combine


phively/wranglR documentation built on April 11, 2020, 5:12 a.m.