delta | R Documentation |
find default time interval end points when intervals are regular
delta(x)
x |
object of class |
;
to find the interval size for the last observation (which has no next
observation), x
needs to be at least of length 2.
sequence of POSIXct
time stamps, indicating the end
of the time interval, given by the next observation in x
.
The last interval gets the same width of the one-but-last interval.
Edzer Pebesma
https://www.jstatsoft.org/v51/i07/
x = as.POSIXct("2000-01-01") + (0:9) * 3600
delta(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.