0

With this data frame grouping the response variables :

enter image description here

And this df grouping the explanatory variables :

enter image description here

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 :

enter image description here

Someone to help me ?

Thank you

6
  • Please type traceback() after the error. It will print the path to the error message. The summary function for rda 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. Commented Apr 28, 2017 at 16:51
  • Please make your problem reproducible. As it is, users can only speculate on possible issues. Commented Apr 28, 2017 at 17:07
  • I understand the need to reproduce the exemple. But this exemple seems to be a "special case" in which something doesn't work properly (maybe due to my proper data). That's why if I reproduce the exemple with a dataset of R (like iris data), the summary function will work
    – Loulou
    Commented Apr 28, 2017 at 20:37
  • I still wait for the output of traceback(): it will tell us in which function the error happened. Commented Apr 30, 2017 at 4:16
  • 2
    I think the problem is that with Condition() the constraints were completely aliased. Is this so? If you just look at the result (type fish_rda) there will be line Constrained 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. Commented May 1, 2017 at 16:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.