time_count: time_count

Description Usage Arguments Details Value Author(s)

View source: R/timeseries.R

Description

time_count

Usage

1
2
3
4
5
6
7
time_count(
  time,
  breaks = c("days", "weeks", "months", "years"),
  count = c("freq", "cumul"),
  tmin = NULL,
  tmax = NULL
)

Arguments

time

a vector of dates

breaks

one of c('days', 'weeks', 'months', 'years') to split the data by

count

'freq' for frequency count or 'cumul' for cumulative count

tmin

starting date (optional)

tmax

ending date (optional)

Details

Count the number of values in a date vector binned by various intervals.

Value

df dataframe containing the frequency or cumulative count of selected time breaks

Author(s)

Thomas Rosendal


SVA-SE/svamap documentation built on Sept. 25, 2020, 3:53 p.m.