apply {gmp} | R Documentation |
Theses functions overload apply function for big rationals and big integers
apply(X, MARGIN, FUN)
X |
A matrix of class bigz or bigq |
MARGIN |
1: apply function on rows; 2: apply function of columns |
FUN |
function to be applied |
return a vector of class bigz or bigq.
Antoine Lucas
x = as.bigz(matrix(1:12,3)) apply(x,1,min) apply(x,2,max) x = as.bigq(matrix(1:12,3)) apply(x,1,min) apply(x,2,max)