powered by
Creates list of windows
unique_run(x, k = 0L, idx = 1L)
Vector of any type
integer vector which specifies window length
an optional integer vector containing idx numbers of observation.
# NOT RUN { unique_run(1:10, k=3) unique_run(letters[1:10],k=c(1,2,2,4,5,5,5,5,5,5)) # }
Run the code above in your browser using DataLab