powered by
Transform response variable prior to fitting GAM
anlz_trans(moddat, trans = c("log10", "ident"))
moddat with the value column transformed as indicated
moddat
value
input raw data, one station and paramater
chr string indicating desired type of transformation, one of log10 or ident (no transformation)
log10
ident
Other analyze: anlz_sumtrndseason(), anlz_trndseason()
anlz_sumtrndseason()
anlz_trndseason()
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