randTimes: Return a Vector of N Times Within a Day

Description Usage Arguments Examples

Description

The goal of this is to return a random sample of times between two known end points. This comes from a stack overflow post: http://goo.gl/LDHqSF; the answer and code comes from Dirk Edelbuettel, but I've modified it slightly to deal with posix times input

Usage

1
randTimes(N, st = "2016-06-14 07:30:00", et = "2016-06-14 22:30:00")

Arguments

N

- number of events to return

st

- starting time in POSIX form: YYYY-MM-DD HH:MM:SS

st

- ending time in POSIX form: YYYY-MM-DD HH:MM:SS

Examples

1

robschick/smokevis documentation built on May 27, 2019, 11:58 a.m.