Extremes: Maxima and Minima

Description Usage Arguments Details Examples

Description

Returns one of more extreme values from the data, but not necessarily the actual maximum or minimum.

Usage

1
2
3
max(..., na.rm = FALSE)

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

Arguments

...

numeric or character arguments.

na.rm

a logical indicating whether missing values should be removed.

Details

'max' and 'min' return the maximum or minumum of _some_ of the values present in their aguments.

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

Examples

1
2
3
4
  max(1:5)  # may or may not equal 5

  # Which is bigger, 1.8 million, or 600,000? ... it depends
  max(1800000,600000)

JerBoon/trumpverse documentation built on Oct. 30, 2019, 7:38 p.m.