R/ca.R

Defines functions `ca`

`ca` <- function(X, ...) {
  if (inherits(X, "formula")) {
    stop("Argument 'X' was supplied a formula, which is not supported by 'ca()'",
    call. = FALSE)
  }
  ord <- cca(X = X, ...)
  # change the call to be from ca()
  ord$call <- match.call()
  class(ord) <- append(class(ord), "vegan_ca", after = 0)
  ord
}

Try the vegan package in your browser

Any scripts or data that you put into this service are public.

vegan documentation built on Sept. 11, 2024, 7:57 p.m.