Learn R Programming

Rmpfr (version 0.5-3)

pmax: Parallel Maxima and Minima

Description

Returns the parallel maxima and minima of the input values.

The functions pmin and pmax have been made S4 generics, and this page documents the ... method for class "mNumber", i.e., for arguments that are numeric or from class "mpfr".

Usage

pmax(..., na.rm = FALSE)
pmin(..., na.rm = FALSE)

Arguments

...
numeric or arbitrary precision numbers (class mpfr).
na.rm
a logical indicating whether missing values should be removed.

Value

  • vector-like, of length the longest of the input vectors; typically of class mpfr, for the methods here.

Details

See pmax, the documentation of the base functions, i.e., default methods.

See Also

The documentation of the base functions, pmin and pmax; also min and max; further,

range (both min and max).

Examples

Run this code
(pm <- pmin(1.35, mpfr(0:10, 77)))
 stopifnot(pm == pmin(1.35, 0:10))

Run the code above in your browser using DataLab