Closed aguilart closed 1 month ago
Yes, this is clumsy. However, there may be some shortcuts:
Condition()
accepts matrix argument (instead of data frame). Formulae mite ~ Condition(as.matrix(mite.pcnm))
or mite ~ Condition(as.matrix(mite.pcnm)[, 1:2])
should work.rda(mite, , mite.pcnm)
or rda(mite, , pcnm[, 1:2])
.
I am wondering what is the best way to take into account spatial autocorrelation in RDA. My best attempt has been as follows:
It is a bit complicated that under Condition I have to write each PCNM axis, but I have not found a way to put the whole dataframe.
Is this approach valid?
Thanks
CA