With this data frame grouping the response variables :
And this df grouping the explanatory variables :
I perform the vegan::rda like this :
fish_rda <- rda(fish ~ kJ_per_kg_GF + Condition(factor(annee)), data=df_rda)
But when I call summary(fish_rda)
, it returns this error message :
Error in if (all(vars >= 0)) cumsum(vars) else NA : missing value where TRUE/FALSE needed
I don't understand ...
Here, there is the output of the traceback function :
Someone to help me ?
Thank you
traceback()
after the error. It will print the path to the error message. Thesummary
function forrda
is not able to give this error message in vegan, but it must come from somewhere else. In general, we need a reproducible example to solve the problems.traceback()
: it will tell us in which function the error happened.fish_rda
) there will be lineConstrained 0.0000 0.0000 0
which means that constraints did not explain anything after Conditions were partialled out. At least I could generate your error message in such a case. This is a bug in vegan and I'll fix it.