count_time_events: Count time-stamped events

View source: R/count_time_events.R

count_time_eventsR Documentation

Count time-stamped events

Description

Count time-stamped events

Usage

count_time_events(
  event_dates,
  event_type = c("year", "month", "week", "day", "hour", "minute"),
  event_all_possible = NULL
)

Arguments

event_dates

vector of class "Date" of events to be counts

event_type

'year', 'month', 'week', 'day', 'hour' or 'minute'

event_all_possible

(optional) specify all possible dates to count used to count event_type's with zero values.

Value

table of counts for each event by event_type


jlivsey/livsey documentation built on Oct. 17, 2024, 3:18 a.m.