# \donttest{
data(economic_cycles)
result <- detect_regimes(economic_cycles, method = "pelt")
plot(result)
# Compare with true changepoints
true_cps <- attr(economic_cycles, "true_changepoints")
evaluate(result, true_changepoints = true_cps)
# }
Run the code above in your browser using DataLab