Description Usage Arguments Examples
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
1 | randTimes(N, st = "2016-06-14 07:30:00", et = "2016-06-14 22:30:00")
|
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 |
1 | randTimes(5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.