View source: R/multigen_function.R
compute_compet_distance | R Documentation |
This function compute trait distance between species using a trait matrix and a trait weights data.frame. For all the traits with competition weights not equal to zero, it computes a weighted 'composite trait' that is then used to compute euclidean trait distance between species. Trait distance is first exponentiated then standardized between 0 and 1.
compute_compet_distance(trait_weights, traits, exponent = 1)
trait_weights |
data.frame with at least three columns equal to |
traits |
a species-traits data.frame with species as rownames and
traits as numeric columns with names matching
|
exponent |
[ |
an euclidean distance matrix (of type matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.