Learn R Programming

gmp (version 0.4-10)

Extremes: Returns the maxima and minima of the input values.

Description

Theses functions overload min and max function for big rationals and big integers

Usage

max.bigz(..., na.rm=FALSE)
     max.bigq(..., na.rm=FALSE)
     min.bigz(..., na.rm=FALSE)
     min.bigq(..., na.rm=FALSE)

Arguments

...
numeric arguments
na.rm
a logical indicating whether missing values should be removed.

Value

  • return an element of class bigz or bigq.

See Also

max

Examples

Run this code
x = as.bigz(1:10)
  ##_call max.bigz => return 10
  max(x)
  min(x)

  x = as.bigq(1:10)
  ##_call max.bigq
  max(x)
  min(x)

Run the code above in your browser using DataLab