| moving_trend | R Documentation | 
Calculate moving trend coefficients
moving_trend(n_year, duration, first_year = 0)
| n_year | Number of available years in the data. | 
| duration | Number of years in the moving window. If the number of available years is less than this value, the trend will be calculated for the available years. | 
| first_year | First year of the data. Only used to name the rows. | 
A matrix with the moving trend coefficients.
One row for each window and and one column for each year in the data.
The format of the row names is trend_{window mid point}_{window length}.
trend_2001.5_4 is the trend for the years 2000 to 2003.
moving_trend(5, 3)
moving_trend(5, 4, 2000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.