View source: R/theil_sen_slope.R
theil_sen_slope | R Documentation |
Theil-Sen slope with time
theil_sen_slope(y, x = 1:length(y))
y |
numeric, a time series |
x |
numeric, the time points of the time series (optional, defaults to 1, 2, ...) |
the Theil-Sen slope, a number
Ken Butler, butler@utsc.utoronto.ca
theil_sen_slope(c(2,3,5,10))
theil_sen_slope(y = c(2,3,5,10), x = 1:4)
theil_sen_slope(y = c(2,3,5,10), x = c(1, 2, 3, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.