find_breakpoints: Function to detect breakpoints

View source: R/find_breakpoints.R

find_breakpointsR Documentation

Function to detect breakpoints

Description

find_breakpoints can be used to find breakpoints which can be extracted as a vector by get_break_numbers

Usage

find_breakpoints(df, h = 0.15, breaks = NULL)

get_break_numbers(x)

Arguments

df

Data frame to detect breakpoints in

h

minimal segment size either given as fraction relative to the sample size or as an integer giving the minimal number of observations in each segment.

breaks

Maximum number of breaks to be calculated

x

Object of class "breakpoints"

Value

An object of class "breakpoints"

Author(s)

Shona Wilde


shonawilde/shonarrr documentation built on Jan. 29, 2025, 1:27 a.m.