minTimeStep: Minimum Time Step in Sequence of Timestamps

Description Usage Arguments Examples

View source: R/step.R

Description

Minimum Time Step in Sequence of Timestamps

Usage

1
minTimeStep(tstamps, dbg = FALSE)

Arguments

tstamps

vector of POSIX-type timestamps or any other vector that can be converted to integer

dbg

should debug messages be shown?

Examples

1
2
3
4
5
6
tstamps <- seq(as.POSIXct("2017-11-03"), as.POSIXct("2017-11-04"), 3600)
minTimeStep(tstamps)

# No need for timestamps!
minTimeStep(c(10, 20, 30, 40, 45, 50, 60))
minTimeStep(c(10, 20, 30, 40, 45, 50, 60), dbg = TRUE)

KWB-R/kwb.datetime documentation built on July 9, 2021, 10:28 p.m.