| .reformat_k | R Documentation | 
Formats time-unit-interval to valid for runner. User specifies k as
positive number but this means that this interval needs to be substracted
from idx - because windows length extends window backwards in time.
The same situation for lag.
.reformat_k(k, only_positive = TRUE)
| k | (k or lag) object from runner to be formatted | 
| only_positive | for  | 
runner:::.reformat_k("1 days")
runner:::.reformat_k("day")
runner:::.reformat_k("10 days")
runner:::.reformat_k("-10 days", only_positive = FALSE)
runner:::.reformat_k(c("-10 days", "2 months"), only_positive = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.