Learn R Programming

wqtrends (version 1.5.1)

anlz_trans: Transform response variable

Description

Transform response variable prior to fitting GAM

Usage

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

Value

moddat with the value column transformed as indicated

Arguments

moddat

input raw data, one station and paramater

trans

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

See Also

Other analyze: anlz_sumtrndseason(), anlz_trndseason()

Examples

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

Run the code above in your browser using DataLab