CCA-Error in eval

Hey everyone,

I try to do a CCA with the simple cca-funktion from the package vegan.
I tried it that way:

cca.all <- cca(species~Tree_species+DBH+Elevation+Exposition, data = "environmentalvariables ")

befor that I seperated a list 'species' out of the main list (environmentalvariables) because the list 'species' just have the pre and abscens information with '0' and '1' .
And now R gave me the error:

Error in eval(predvars, data, env) :
invalid 'envir' argument of type 'character

what does this mean? Tree_species row and the Exposition are letters. so I tried to change them into factors with the function as.factor. but it still does not work.

Maybe you have a better solution, that could help me. Thank you for that

Don't quote "environmentalvariables"

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.