我有一个巨大的矩阵,其中nrow = 144,ncol = 156267包含数字,我想计算所有列之间的相关性 . 这可以使用此处描述的 bigcor 函数完成:https://www.r-bloggers.com/bigcor-large-correlation-matrices-in-r/ .

在制作了 bigcor 函数后,我运行了:

bigcor(Mbig2, nblocks = 1611, verbose = TRUE)

这会导致以下错误:

if(length <0 || length> .Machine $ integer.max)中的错误停止(“长度必须介于1和.Machine $ integer.max之间”):缺少值需要TRUE / FALSE此外:警告消息:在ff(vmode =“single”,dim = c(NCOL,NCOL)):

我的问题是:1)这是否可行?有没有办法逃避错误?