Assign each observation the maximum flag from applied QC tests.
adcp_assign_max_flag.RdAssign each observation the maximum flag from applied QC tests.
Arguments
- dat
Data frame in long or wide format with flag columns from multiple quality control tests.
- qc_tests
Quality control tests included in
dat. Default isqc_tests = c("tidal_bin_height" ,"grossrange"). Will also work for "rolling_sd" and "spike".- return_all
Logical value indicating whether to return all quality control flag columns or only the summary columns. If
TRUE, all flag columns will be returned. IfFALSE, only the summary columns will be returned. Default isTRUE.