max_or_na: Returns max or NA (rather than -Inf) if there are no non-NA...

Description Usage Arguments Value

View source: R/clip_flow.R

Description

The max function returns -Inf and a warning if there are no non-NA values in their arguments. This function suppress the warning and returns NA.

Usage

1

Arguments

x

a numeric vector

Value

the result of max or NA if there are no non-NA values


jarad/HelmersLab documentation built on Dec. 5, 2020, 8:34 a.m.