使用帮助页面中的示例:
library(gmp)
x <- as.bigz(matrix(1:12,3))
apply(x,1,min)
# Big Integer ('bigz') object of length 3:
# [1] 1 2 3
apply(x,2,max)
# Big Integer ('bigz') object of length 3:
# [1] 10 11 12
结果应该是:
x <- matrix(1:12,3)
apply(x,1,min)
# [1] 1 2 3
apply(x,2,max)
# [1] 3 6 9 12
答案 0 :(得分:2)
现在可以了!!
x <- matrix(1:12,3)
apply(x,1,min)
# [1] 1 2 3
apply(x,2,max)
# [1] 3 6 9 12