sampling_start: Create sequence of start times

Description Usage Arguments Value Examples

View source: R/sampling_start.R

Description

Create a sequence of start times by defining the amount of time between each, in seconds. E.g., samp_freq = 3600 for sampling once per hour.

Usage

1
sampling_start(samp_freq, date_lim)

Arguments

samp_freq

The number of seconds between each sampling period

date_lim

A vector of length 2 of class POSIXct. The first and last date of the desired sampling period.

Value

A sequence of dates

Examples

1
2
d <- c(Sys.time()-43200, Sys.time())
sampling_start(3600, d)

annam21/TTE.STE.IS documentation built on Dec. 24, 2021, 8:42 a.m.