R/clean_flows.R
clean_flows.Rd
Function to replace zeros in the flow record with specified value and replace negative discharge values with NA.
NA
clean_flows(discharge, replace_0 = 0.001, replace_neg = NA)
numeric vector of discharges.
numeric value or NA to replace zeros with. Defaults to 0.001.
numeric value or NA to replace negative values with. Defaults to NA.
numerioc vector same length as values provided in discharge.
discharge