0

我一直在 PRIMER 中学习多变量分析,但现在想使用该vegan包转换为 R。我希望在 中使用该capscale()功能vegan,但不确定我的数据应该如何预先格式化。在小插图http://cc.oulu.fi/~jarioksa/softhelp/vegan/html/capscale.html的示例中,dataframes(varespecvarechem) 都只有数字值,但我有一个dataframe从属(数字)值,并且另一个独立(因子)值。所以我要求的是一个我可以效仿的替代工作示例。我在网上找不到任何东西。iris数据集应提供足够的玩具数据。谢谢

4

1 回答 1

1

The vignette source you use is badly outdated: I got to remove it from the Web. The help page for ?capscale should contain more up-to-date documentation in your current vegan installation. For the independent data with factors, you should be able to use the model of any other constrained ordination help (?rda) which tell you that with formula interface you can have factors in the independent data -- and the formula interface is the only allowed interface in capscale.

You should switch from capscale to dbrda in vegan: capscale may be deprecated in the future.

于 2017-03-28T07:04:51.763 回答