vegandevs / vegan

R package for community ecologists: popular ordination methods, ecological null models & diversity analysis
https://vegandevs.github.io/vegan/
GNU General Public License v2.0
461 stars 98 forks source link

Error in ordConstrained(X, Y, Z, arg = scale, method = "rda") : dependent data and constraints must have the same number of rows #703

Open Coral4 opened 1 month ago

Coral4 commented 1 month ago

Hi there,

I am running an RDA with the following code:

rda(X, Y)

where X is a df containing the vectors of a Pcoa, and Y is a dataframe containing environmental variables.

dim(X) = 422 421
dim(Y) = 422 22

But I still get the following error:

Error in ordConstrained(X, Y, Z, arg = scale, method = "rda") : dependent data and constraints must have the same number of rows

Any thoughts would be appreciated!

Best, Coral

jarioksa commented 4 weeks ago

No idea. I cannot reproduce this.