Generic function out.of.water.as.NA() for replacing water levels smaller than threshold with NA; methods for data.frame and zoo.
Documentation for out.of.water.as.NA().