Description Usage Arguments Examples
Given the start time and the end time of a period, expand it into a vector of equally spaced time points.
1 | expand_timestamp(start, end, units = "1 min")
|
start |
The start time, as a POSIXct object. |
end |
The end time, as a POSIXct object. |
units |
The time unit as a characters string.
The default is |
1 2 3 | start <- as.POSIXct("2017-01-01")
end <- as.POSIXct("2017-01-01 01:00:00")
expand_timestamp(start, end, "15 mins")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.