Make a changepoint data.table

make_changepoint(
  parameter_x,
  region_y,
  new_state,
  previous_state,
  changepoint_number = NaN,
  add_na = TRUE
)

Arguments

parameter_x

The x location of this changepoint

region_y

A range of values between the mean of the previous changeregion and the mean of the next changeregion

new_state

The name of the next changeregion's state

previous_state

The name of the previous changeregion's state

changepoint_number

The index/number of this changepoint (default NaN)

add_na

Whether to add a row of NAs at the bottom of the return table

Value

(data.table) describing the changepoint