gpt4 book ai didi

r - gmp(多精度算术)apply.bigz 函数错误

转载 作者:行者123 更新时间:2023-12-02 11:23:27 25 4
gpt4 key购买 nike

使用帮助页面中的示例:

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

最佳答案

现在工作正常!!

x <- matrix(1:12,3)
apply(x,1,min)
# [1] 1 2 3
apply(x,2,max)
# [1] 3 6 9 12

关于r - gmp(多精度算术)apply.bigz 函数错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33755457/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com