count_events: Count events.

View source: R/count_events.R

count_eventsR Documentation

Count events.

Description

Counts the number of events from 'x' that fall into time-bins defined by breaks.

Usage

count_events(x, breaks, BP)

Arguments

x

A numeric vector of event times to be counted.

breaks

A numeric vector of temporal bin edges The bin edges defined by this argument will serve as the right-most boundary condition which will be closed, i.e., the interval will be left-open and right-closed: ( ].

BP

A logical argument specifying whether the events are on the BP (before present) timeline.

Value

A vector containing event counts.


wccarleton/chronup documentation built on March 29, 2023, 1:24 a.m.