check_nchangepoints: Check that nchangepoints vector is proper

View source: R/TS_on_LDA.R

check_nchangepointsR Documentation

Check that nchangepoints vector is proper

Description

Check that the vector of numbers of changepoints is conformable to integers greater than 1.

Usage

check_nchangepoints(nchangepoints)

Arguments

nchangepoints

Vector of the number of changepoints to evaluate.

Value

An error message is thrown if nchangepoints is not proper, else NULL.

Examples

  check_nchangepoints(0)
  check_nchangepoints(2)


LDATS documentation built on Sept. 19, 2023, 5:08 p.m.