Skip to contents

Max aggregation with na.rm = TRUE by default except that all-NA vectors still return NA, not 0.

Usage

Max(x, na.rm = TRUE)

Arguments

x

values to aggregate

na.rm

default na.rm = TRUE finds the aggregation ignoring NA, opposite usual na.rm default na.rm = FALSE, which returns NA if there are any NA.

Value

numeric