anlz_sumtrndseason {wqtrends} | R Documentation |
Estimate seasonal rates of change based on average estimates for multiple window widths
Description
Estimate seasonal rates of change based on average estimates for multiple window widths
Usage
anlz_sumtrndseason(
mod,
doystr = 1,
doyend = 364,
justify = c("center", "left", "right"),
win = 5:15
)
Arguments
mod |
input model object as returned by |
doystr |
numeric indicating start Julian day for extracting averages |
doyend |
numeric indicating ending Julian day for extracting averages |
justify |
chr string indicating the justification for the trend window |
win |
numeric vector indicating number of years to use for the trend window |
Details
This function is a wrapper to anlz_trndseason
to loop across values in win
, using useave = TRUE
for quicker calculation of average seasonal metrics. It does not work with any other seasonal metric calculations.
Value
A data frame of slope estimates and p-values for each year
See Also
Other analyze:
anlz_trans()
,
anlz_trndseason()
Examples
library(dplyr)
# data to model
tomod <- rawdat %>%
filter(station %in% 34) %>%
filter(param %in% 'chl') %>%
filter(yr > 2015)
mod <- anlz_gam(tomod, trans = 'log10')
anlz_sumtrndseason(mod, doystr = 90, doyend = 180, justify = 'center', win = 2:3)
[Package wqtrends version 1.4.2 Index]