key_slope | R Documentation |
Using key_slope
you can fit a linear model to each key in the tsibble
.
add_key_slope
adds this slope information back to the data, and returns
the full dimension tsibble
.
key_slope(.data, formula, ...)
add_key_slope(.data, formula)
add_key_slope.default(.data, formula)
.data |
tsibble |
formula |
formula |
... |
extra arguments |
tibble with coefficient information
key_slope(heights, height_cm ~ year)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.