Pivot flagged current data longer by variable
adcp_pivot_flags_longer.RdPivot flagged current data longer by variable
Arguments
- dat
Data frame of flagged current data in wide format.
- qc_tests
Quality control tests included in
dat_wide. Default isqc_tests = c("tidal_bin_height", "grossrange", "qc"). Will also work for "rolling_sd" and "spike". Ifdat_wideonly includes the max flag, useqc_tests = "qc".- vars
Vector of character strings indicating which columns to pivot. Default is all variables. Only required if variables in
datare in a wide format.