max: Maxima and Minima

Description Usage Arguments Details Author(s)

Description

Return the maxima and minima of the input values.

Usage

1
2
3
4
5
## S4 method for signature 'madness'
max(x, ..., na.rm = FALSE)

## S4 method for signature 'madness'
min(x, ..., na.rm = FALSE)

Arguments

x

madness object arguments.

...

madness object arguments.

na.rm

a logical indicating whether missing values should be removed.

Details

max and min return the maximum or minimum of all the values present in their arguments.

If na.rm is FALSE and NA value in any of the arguments will cause a value of NA to be returned, otherwise NA values are ignored.

The minimum and maximum of a numeric empty set are +Inf and -Inf (in this order!) which ensures transitivity, e.g., min(x1, min(x2)) == min(x1, x2). For numeric x max(x) == -Inf and min(x) == +Inf whenever length(x) == 0 (after removing missing values if requested).

Author(s)

Steven E. Pav shabbychef@gmail.com


shabbychef/madness documentation built on April 11, 2021, 11:03 p.m.