max2: Maxima and Minima

View source: R/max2.R

max2R Documentation

Maxima and Minima

Description

Returns the (regular or parallel) maxima and minima of the input values. For numeric NAs, it returns NA instead of Inf or -Inf.

Usage

max2(..., na.rm = FALSE)

min2(..., na.rm = FALSE)

Arguments

...

numeric or character arguments

na.rm

a logical indicating whether missing values should be removed.

Examples

max2(c(NA), na.rm=TRUE)
max(c(NA), na.rm=TRUE)

min2(c(NA), na.rm=TRUE)
min(c(NA), na.rm=TRUE)


ShichenXie/xefun documentation built on Feb. 12, 2025, 6:19 p.m.