time_seq: Create time sequence with custom intervals

Description Usage Arguments Value Examples

Description

Creates a POSIXt vector from the start time to the end time with N number of steps, based on the interval length choosen.

Usage

1
time_seq(start, end, step, units = "days")

Arguments

start

a start date or time as a character string ("yyyy-mm-dd", "yyyy-mm-dd HH:MM", "yyyy-mm-dd HH:MM:SS)

end

a start date or time as a character string ("yyyy-mm-dd", "yyyy-mm-dd HH:MM", "yyyy-mm-dd HH:MM:SS)

step

a number representing the length of time in units between each step

units

the units of step: "seconds", "minutes", "days", "months", "years"

Value

A POSIXt vector

Examples

1
time_seq("2016-11-01", "2016-11-03", step = 15, units = "minutes")

jpshanno/ecoFlux documentation built on May 19, 2019, 11:51 p.m.