data("apacpwq")
wq <- apacpwq
dat_wq <- qaqc(wq, qaqc_keep = c(0, 3, 5))
dat_wq <- setstep(dat_wq)
wq_pars<- threshold_identification(dat_wq, param = c('do_mgl', 'ph', 'temp')
, parameter_threshold = c(2, 5, 30)
, threshold_type = c('<', '<', '>'), time_threshold = 2)
# \donttest{
wq_par<- threshold_identification(dat_wq, param = c('do_mgl')
, parameter_threshold = c(2)
, threshold_type = c('<'), time_threshold = 2)
## time_threshold and setstep are not necessary for monthly parameters
data("apacpnut")
nut <- apacpnut
dat_nut <- qaqc(nut, qaqc_keep = c(0, 3, 5))
nut_pars <- threshold_identification(dat_nut, param = c('chla_n', 'po4f')
, parameter_threshold = c(10, 0.01)
, threshold_type = c('>', '>'))
nut_par <- threshold_identification(dat_nut, param = c('chla_n')
, parameter_threshold = c(10)
, threshold_type = c('>'))
nut_err <- threshold_identification(dat_nut, param = c('chla_n')
, parameter_threshold = c(30)
, threshold_type = c('>'))
# }
Run the code above in your browser using DataLab