anlz_trans: Transform response variable

View source: R/anlz_trans.R

anlz_transR 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')

wqtrends documentation built on Sept. 11, 2024, 9:04 p.m.