Skip to contents

Function to replace zeros in the flow record with specified value and replace negative discharge values with NA.

Usage

clean_flows(discharge, replace_0 = 0.001, replace_neg = NA)

Arguments

discharge

numeric vector of discharges.

replace_0

numeric value or NA to replace zeros with. Defaults to 0.001.

replace_neg

numeric value or NA to replace negative values with. Defaults to NA.

Value

numerioc vector same length as values provided in discharge.