length_run | R Documentation |
Number of elements in k-long window calculated on idx
vector.
If idx
is an as.integer(date)
vector, then k=number of days in window -
then the result is number of observations within k days window.
length_run(k = integer(1), lag = integer(1), idx = integer(0))
k |
( |
lag |
( |
idx |
( |
length_run(k = 3, idx = c(1, 2, 2, 4, 5, 5, 5, 5, 5, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.