我正在尝试在ff中创建一个巨大的矩阵,我知道ff非常适合这种情况。但是,有一个主要问题。矩阵的维数超过了.Machine$max_integer!我正在64位机器上运行,使用64位R和64位ff。是否有任何方法可以解决这个问题?已经建议使用stdint.h中的MAXINT值。是否有任何方法可以在不更改该文件并可能破坏构建的情况下修复此问题?
> ffMatrix <- ff(vmode="boolean", dim=c(300000,300000))
Error in if (length < 0 || length > .Machine$integer.max) stop("length must be between 1 and .Machine$integer.max") :
missing value where TRUE/FALSE needed
In addition: Warning message:
In ff(vmode = "boolean", dim = c(300000, 300000)) :
NAs introduced by coercion
> 300000**2 > .Machine$integer.max
[1] TRUE