Description Usage Arguments Details Value Examples
Find spell durations (assuming observations have equal time spacing)
1 |
x |
a time ordered vector with values identifying a spell. It is assumed that when a value in this vector changes that the spell has ended. |
Note that the function assumes that supplied observations are time ordered and equally spaced in time.
a vector of spell durations for each observation in x
.
1 2 | x <- c(rep('a', 4), rep('b', 3), 'c', rep('a', 2), 'c')
spell_duration(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.