| pieces_from_changepoints | R Documentation |
Link the time vector (assuming years) to the pieces (as in 'piecewise linear model) that are encoded in the changepoints.
pieces_from_changepoints(year, changepoints, dbg = F)
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 |
a vector of the changepoints (as in 1..J-1) for each year.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.