anlz_trans {wqtrends}R Documentation

Transform response variable

Description

Transform response variable prior to fitting GAM

Usage

anlz_trans(moddat, trans = c("log10", "ident"))

Arguments

moddat

input raw data, one station and paramater

trans

chr string indicating desired type of transformation, one of log10 or ident (no transformation)

Value

moddat with the value column transformed as indicated

See Also

Other analyze: anlz_sumtrndseason(), anlz_trndseason()

Examples

library(dplyr)
tomod <- rawdat %>% 
  filter(station %in% 34) %>% 
  filter(param %in% 'chl')
anlz_trans(tomod, trans = 'log10')

[Package wqtrends version 1.4.2 Index]