get_deletion: Return the index of the first changepoint to delete

View source: R/data_checks.R

get_deletionR Documentation

Return the index of the first changepoint to delete

Description

Return the index of the first changepoint to delete

Usage

get_deletion(count, year, changepoints, covars = NULL, dbg = dbg)

Arguments

count

integer vector of counts (NA, 0 or positive)

year

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

changepoints

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

covars

optional covariance info.

dbg

debug flag

Value

the index of the first changepoint to delete; or 0 if there are none to delete


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