spells | R Documentation |
Calculates the running number of consecutive non-zero values of a vector
spells(x, initial_value = NA_real_)
x |
A numeric vector |
initial_value |
The initial value of the spell length |
a vector of length x
of the running number of consecutive non-zero values of x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.