Skip to contents

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

Usage

OR.mean(x)

Arguments

x

Numeric vector.

Value

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