pieces_from_changepoints: Link the time vector (assuming years) to the pieces (as in...

View source: R/data_checks.R

pieces_from_changepointsR Documentation

Link the time vector (assuming years) to the pieces (as in 'piecewise linear model) that are encoded in the changepoints.

Description

Link the time vector (assuming years) to the pieces (as in 'piecewise linear model) that are encoded in the changepoints.

Usage

pieces_from_changepoints(year, changepoints, dbg = F)

Arguments

year

integer vector of years (or time points 1..J)

changepoints

integer vector of suggested changepoints in the range 1..J-1

dbg

debug flag

Value

a vector of the changepoints (as in 1..J-1) for each year.


rtrim documentation built on Nov. 10, 2026, 9:06 a.m.