proportionsComparison | R Documentation |
Compares two datasets of relative proportions of multiple classes (sum of classes equals one at each point) where the total for each data where the totally value for each. Specifically calculates and returns a list with the Manhattan Metric (MM) and Square Chord Distance (SCD).
proportionsComparison(
x,
layers1,
layers2,
additional,
verbose = TRUE,
area = TRUE
)
x |
A data.table containing the spatial-temporal-annual columns and two columns containing the data to be compared |
layers1 |
A vector of character strings giving the layers from the second dataset to compare (should be columns in x and sum to 1 or 100) |
additional |
A list of functions define additions metrics, see the custom.metrics argument of |
verbose |
A logical, if TRUE print out all the metric scores |
area |
A logical, if true weight the metrics by gridcell area (not implemented) |
A named list of metric statistics
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.