Make a changepoint data.table
make_changepoint(
parameter_x,
region_y,
new_state,
previous_state,
changepoint_number = NaN,
add_na = TRUE
)
The x location of this changepoint
A range of values between the mean of the previous changeregion and the mean of the next changeregion
The name of the next changeregion's state
The name of the previous changeregion's state
The index/number of this changepoint (default NaN)
Whether to add a row of NAs at the bottom of the return table
(data.table) describing the changepoint