anlz_avgseason {wqtrends} | R Documentation |
Extract period (seasonal) averages from fitted GAM
Description
Extract period (seasonal) averages from fitted GAM
Usage
anlz_avgseason(mod, doystr = 1, doyend = 364)
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 |
Value
A data frame of period averages
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_avgseason(mod, doystr = 90, doyend = 180)
[Package wqtrends version 1.4.2 Index]