| cpt_report | R Documentation |
Assembles everything a reader needs to judge a changepoint result into one artifact: the method and its citation, the penalty, the number and locations of the changepoints with intervals where available, the segment table, stability and diagnostics if they were computed, and the session information. Reproducibility and correct attribution in one call.
cpt_report(
object,
format = c("md", "text", "gt", "json"),
file = NULL,
stability = NULL,
events = NULL,
confint = TRUE,
session = TRUE
)
object |
A |
format |
|
file |
Optional path to write to. The report is returned invisibly
when a file is written. Ignored for |
stability |
Optional |
events |
Optional |
confint |
Include a |
session |
Include |
A character vector of report lines (or a gt table when
format = "gt").
cpt_gt(), cpt_cite().
set.seed(2026)
fit <- cpt_detect(c(rnorm(60), rnorm(60, 4)), method = "pelt")
cat(cpt_report(fit, session = FALSE), sep = "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.