Extremes {gmp}R Documentation

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.

Author(s)

Antoine Lucas

See Also

max

Examples

  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)
  

[Package gmp version 0.4-8 Index]