R/pco.R

Defines functions `pco`

`pco` <- function(X, ...) {
  if (inherits(X, "formula")) {
    stop("Argument 'X' was supplied a formula, which is not supported by 'pco()'",
    call. = FALSE)
  }
  ord <- dbrda(X ~ 1, ...)
  # change the call to be from pco()
  ord$call <- match.call()
  class(ord) <- append(class(ord), "vegan_pco", 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.