| cpt_labels | R Documentation |
Builds the tidy label set that the supervised functions consume: one row per labelled region, each asserting how many changepoints that stretch of the series contains.
cpt_labels(start, end, change = "change", series = NA_character_)
## S3 method for class 'cpt_labels'
tidy(x, ...)
start, end |
Integer vectors of region boundaries (positions, inclusive). |
change |
What the region asserts, recycled to length:
|
series |
Optional series identifier, for label sets spanning a panel. |
x |
A |
... |
Ignored. |
A cpt_labels tibble with columns label_id,
series, start, end, change.
hocking2013penaltiesggchangepoint
cpt_label_error(), geom_cpt_label(),
cpt_learn_penalty(),
as_cpt_labels() to convert a plain changepoint set.
cpt_labels(c(40, 70), c(60, 90), c("change", "no_change"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.