【发布时间】:2021-09-19 10:22:28
【问题描述】:
使用 Ecodist 包中的 MRM 功能时,出现以下错误:
Error in xj[i, , drop = FALSE] : incorrect number of dimensions
无论我做什么我都会得到这个错误,我什至在文档中的示例代码中得到它:
data(graze)
# Abundance of this grass is related to forest cover but not location
MRM(dist(LOAR10) ~ dist(sitelocation) + dist(forestpct), data=graze, nperm=10)
我不知道发生了什么。我试过其他电脑也遇到同样的错误,所以它甚至不限于我的机器(windows 10,完全更新)。
最好的,
乔
【问题讨论】:
-
这段代码对我来说很好,我没有收到任何错误。
-
是的,我让我的朋友在他的机器上运行它,它也对他有用,所以这是我的问题......最糟糕的问题。我已将其范围缩小到与 spdep 包有关的内容,因为它在我不加载它的情况下工作。
标签: r dimensions