Skip to content
Prev 227910 / 398500 Next

cca in vegan (formula instead of community matrix data)

On Sat, 2010-07-17 at 12:44 +0800, elaine kuo wrote:
You have samples that have no species observed at all. As such is it
impossible to anything with these samples. Remove them and then fit your
model

datam <- with(datam, datam[rowSums(WinterM_ratio) > 0, ])
m.cca <- cca(WinterM_ratio ~ topo_mean + coast + prec_max +
             temp_min + evi_min,  datam)

However, I have one question for you; is WinterM_ratio a univariate
response (single column)? If it is, why do you want to analyse it using
CCA? CCA is generally used for multivariate species responses.

Finally; you might want to do something about that warning message.
Either your R is out of date or your package library is. If you are
using R2.11-x then run this:

update.packages(checkBuilt = TRUE)

to update the packages to the newest version of R; there have been lots
of changes in the way help is processed / made available that might not
be available if using packages built under earlier versions of R.

HTH

G