.k_by | R Documentation |
Converts k and lag from time-unit-interval to int
.k_by(k, idx, param)
k |
( |
idx |
( |
param |
name of the parameter to be printed in error message |
k <- "1 month"
idx <- seq(
as.POSIXct("2019-01-01 03:02:01"),
as.POSIXct("2020-01-01 03:02:01"),
by = "month"
)
k_difftime <- runner:::.k_by(k, idx, param = "k")
idx - k_difftime
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.