我正在尝试创建一些大型 ff 对象。根据文档,这应该不是问题:
ff <- ff(3, dim=c(10000, 4000, 70), filename="test1.ff", vmode="single")
这给了我一个有用的小错误:
Error in ff(3, dim = c(10000, 4000, 70), filename = "test1.ff", vmode = "single") :
(converted from warning) NAs introduced by coercion
1: ff(3, dim = c(10000, 4000, 70), filename = "test1.ff", vmode = "single")
2: .signalSimpleWarning("NAs introduced by coercion", quote(ff(3, dim = c(10000, 4000, 70), filename = "test1.ff", vmode = "single")))
3: withRestarts({
.Internal(.signalCondition(simpleWarning(msg, call), msg, call))
.Internal(.dfltWarn(msg, call))
}, muffleWarning = function() NULL)
4: withOneRestart(expr, restarts[[1]])
5: doWithOneRestart(return(expr), restart)
创建一个较小的,效果很好:
ff <- ff(3, dim=c(10000, 3000, 70), filename="test1.ff", vmode="single")
我错过了什么吗?数组大小(向量长度)是否有限制?