ord_extract_cov: Extract covariance matrix from ordination scores with...

View source: R/4.ord_extract_cov.R

ord_extract_covR Documentation

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")
)

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".

Value

2x2 covariance matrix.


barrel documentation built on Nov. 5, 2025, 7:40 p.m.