Description Usage Arguments Details Value Examples
Creates a unique ID for all uninterrupted series in a vector
1 | make_series_id(x, delta = 0)
|
x |
numeric vector to be used |
delta |
increment with default |
If x[t] = (x[t-1] + delta) then ID(x[t])=ID(x[t-1]) otherwise ID(x[t]) = ID(x[t-1]) + 1.
an integer vector
1 2 3 4 5 | x <- c(0,1,1,1,2,2,1,3,1,0,0)
y <- c(1998:2000,2005:2010)
make_series_id(y, delta=1)
make_series_id(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.