inst/doc/tidychangepoint.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----rlnorm-plot--------------------------------------------------------------
library(tidychangepoint)

## -----------------------------------------------------------------------------
x <- segment(DataCPSim, method = "pelt")
class(x)

## -----------------------------------------------------------------------------
changepoints(x)

## -----------------------------------------------------------------------------
augment(x)

## -----------------------------------------------------------------------------
tidy(x)

## -----------------------------------------------------------------------------
glance(x)

## ----pelt-plot----------------------------------------------------------------
plot(x)

## -----------------------------------------------------------------------------
fitness(x)

## -----------------------------------------------------------------------------
x |>
  as.segmenter() |>
  str()

## -----------------------------------------------------------------------------
x |>
  as.model() |>
  str()

Try the tidychangepoint package in your browser

Any scripts or data that you put into this service are public.

tidychangepoint documentation built on April 4, 2025, 4:31 a.m.