Apply the spike test to current parameters
adcp_test_spike.RdApply the spike test to current parameters
Arguments
- dat
Data frame of current data in wide format.
- county
Character string indicating the county from which
datwas collected. Used to filter the defaultcurrent_spike_table.- current_spike_table
Data frame with at least 3 columns:
variable: should match the names of the variables being tested indat.spike_low: maximum acceptable spike value to "Pass", andspike_high: maximum acceptable value to be flagged "Suspect/Of Interest".Default values are used if
current_spike_table = NULL. To see the defaultcurrent_spike_table, typesubset(current_thresholds, qc_test == "spike")in the console.- keep_spike_cols
Logical value. If
TRUE, the columns used to produce the spike value are returned indat. Default isFALSE.
Value
Returns dat in a wide format, with spike flag columns for each
variable in the form "spike_flag_variable".
See also
Other tests:
adcp_test_rolling_sd()