Skip to contents

Equivalent to max(x, na.rm = TRUE) except returns NA (rather than -Inf) if all elements are NA.

Usage

OR.max(x)

Arguments

x

Numeric vector.

Value

Maximum of non-NA elements or NA if none exist.