timeline_intervals: Timeline_intervals

Description Usage Arguments Value Examples

View source: R/timeline.R

Description

An extension of timeline(summarize='n', crop=FALSE) for intervals rather than single events.

Usage

1
2
timeline_intervals(dat, trange = NULL, step = 15, units = "mins",
  time_zone = "UTC")

Arguments

dat

tibble

trange

range of times. If NULL, will be inferred from data.

step

numeric, timestep to use in binning

units

character, units for step, as in difftime(), e.g. 'mins' or 'days'

time_zone

time zone

Value

a tibble with columns t (bin-end times), n - count of ongoing events in the bin

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.