Learn R Programming

barrel (version 0.1.0)

ord_extract_cov: Extract covariance matrix from ordination scores with optional robust estimation

Description

Computes the covariance matrix of ordination scores, optionally using robust estimation.

Usage

ord_extract_cov(
  scores,
  axis1,
  axis2,
  weights = NULL,
  method = c("classic", "robust")
)

Value

2x2 covariance matrix.

Arguments

scores

Data frame of ordination scores.

axis1

Name of first axis column.

axis2

Name of second axis column.

weights

Optional numeric vector of weights.

method

Covariance method: "classic" or "robust".