foodweb包错误

时间:2018-04-23 16:03:30

标签: r matrix

我正在使用foodweb包来分析一堆食物网。在分析特定的食物网时,我不断收到以下错误。

  

[。data.frame( tmp ),by.level == 0,value = c(NA_real_,:     '价值'是错误的长度

这是有问题的食物网的adyacency矩阵:

0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
1   0   1   1   1   0   0   0   1   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   1   1   0   0   0   1   0   1   0  
1   0   1   1   0   1   1   0   1   0   0   0   0   0   0   0   0   1   1   0   0   1   0   1   1   1   0   0   0   0   1   1   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  
0   0   1   0   1   0   0   1   0   0   0   1   0   1   0   0   1   1   0   0   1   0   0   1   1   0   0   0   0   0   1   0   1  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
1   0   0   0   1   0   0   0   0   1   1   0   0   0   0   0   1   1   1   0   0   0   0   0   0   1   0   1   0   1   0   0   1  
1   0   1   1   1   0   0   0   1   0   0   0   0   0   1   0   1   1   1   0   0   0   0   1   1   1   0   0   0   0   1   1   0  
1   0   1   1   0   0   1   0   1   0   0   0   0   0   0   0   1   1   0   0   0   0   0   1   1   1   0   0   0   0   1   1   0  
0   0   0   0   0   0   1   0   0   0   0   0   1   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   1   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   1   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
1   0   1   0   0   0   1   0   1   0   0   0   0   1   0   0   0   0   0   0   0   1   0   0   1   1   0   0   0   0   0   1   0  
0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   1   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   1   0   0   0   0   0   0   0   1   0   0   0   1   0   1   1   1   0   0   0   0   1   1   0   0   0   0   0   1   0   0  
1   0   1   1   1   0   0   0   1   0   1   0   0   0   1   0   0   1   1   0   0   0   0   0   1   1   0   1   0   1   0   1   1  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  
1   0   1   1   0   0   0   0   1   0   0   0   1   1   1   0   1   1   1   0   0   0   0   1   1   1   0   0   0   0   1   1   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   1   0   0   0   1   0   0   0   0   0   0   0   1   0   1   1   1   0   0   0   0   1   1   0   0   0   0   0   1   0   0  
1   1   0   1   0   0   1   0   1   0   0   0   0   0   1   1   1   1   0   0   0   0   0   0   0   1   0   1   0   0   0   1   0  
0   0   1   0   1   1   0   0   0   0   1   0   0   0   0   0   0   1   0   1   1   0   0   0   0   0   1   0   1   0   0   0   0  
1   0   1   1   0   0   0   0   1   0   0   0   0   0   1   0   0   1   0   0   0   0   0   1   1   1   0   0   0   0   1   1   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   1   0   0   0   0   0   0   0   0   0   0   0  
0   0   0   0   1   0   0   0   0   0   1   0   0   0   1   0   1   1   0   1   0   0   0   0   0   0   0   1   0   0   0   0   0 

长度有问题,但我无法弄明白。对此有何帮助?提前谢谢!

0 个答案:

没有答案