View source: R/new_functions.R
calc_distance | R Documentation |
Calculates either the Mahalanobis distance or Standardized Euclidean Distance between baseline (historical) and comparison (future) climates
calc_distance(baseline, comparison, dist.metric = c("mahalanobis", "sed"))
baseline |
a matrix containing variables for the baseline period |
comparison |
a matrix containing variables for the comparison period |
dist.metric |
a character vector indicating if Mahalanobis ("mahalanobis") or SED ("sed") should be calculated |
a matrix of distance measures for the comparison period
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.