Extremes: Returns the maxima and minima of the input values.
Description
Theses functions overload min and max function for big rationals and
big integersUsage
max.bigz(..., na.rm=FALSE)
max.bigq(..., na.rm=FALSE)
min.bigz(..., na.rm=FALSE)
min.bigq(..., na.rm=FALSE)
Arguments
na.rm
a logical indicating whether missing values should be removed.
Value
- return an element of class bigz or bigq.
Examples
Run this codex = 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