date_count: Count up Frequency between two dates

View source: R/date_count.R

date_countR Documentation

Count up Frequency between two dates

Description

Counts up number of elements in x between the start and end point

lower and upper default to Jan 1AD and Jan 4000AD, so one sided intervals only need one

Counts up number of elements in x between the start and end point

Usage

date_count(x, lower = "0001-01-01", upper = "4000-01-01", rel = F, incl = F)

Arguments

x

vector of Date objects

rel

logical for output as relative frequency

incl

logical for inclusion of endpoints

start

Start of time interval in YYYY-MM-DD format

end

End of time interval in YYYY-MM-DD format

Value

integer for total number of observations between time period or double for relative frequency

Examples

soon.tm

Ajfrick/ajfhelpR documentation built on June 30, 2023, 12:56 a.m.