Reputation: 905
Was the cca function deprecated in R's ade4 package?
library(ade4)
cca(mammals, environment)
outputs
could not find function "cca"
I can't find any documentation on this error.
Upvotes: 0
Views: 316
Reputation: 23908
There is no cca
function in ade4
package version 1.7-10. However, you can use cancor
from base R
like below
pop <- LifeCycleSavings[, 2:3]
oec <- LifeCycleSavings[, -(2:3)]
cancor(pop, oec)
Edited
Install version 1.7-4 using the following code
library(devtools)
install_version("ade4", version = "1.7-4", repos = "http://cran.us.r-project.org")
and then run
library(ade4)
Upvotes: 1
Reputation: 1560
May be is not available for the newest versions of the package. Nevertheless it is suggested to use cca{vegan}
, which is form the vegan
library.
Upvotes: 0