Description Usage Arguments Value Examples
View source: R/ts_event_count.R
Given a numeric vector with dummies for events, enumerate the events. Return
a vector of length(x)
filled with NA
s, and a counter, where
x
equals 1
.
1 |
x |
A numeric vector of |
A numeric vector containing NA
s, and the count of the event
corresponding to the dummy series.
1 | ts_event_count(c(0, 0, 1, 1, 0, 1, 0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.