View source: R/calculate_total_or_average_distances.R

Summarize the distances in a set of sets

1 2 | ```
summarize_set_distances(distance_matrix, sample_selection,
unit_distances = FALSE, sum_distances = FALSE, min_distances = FALSE)
``` |

`distance_matrix` |
A distance matrix (see create_distance_matrix()). |

`sample_selection` |
A sample_selection object (see find_sets()). |

`unit_distances` |
If unit_distances = TRUE, calculates distances at unit level. |

`sum_distances` |
If sum_distances = TRUE, sums instead of averaging. |

`unit` |
If unit == TRUE, calculates distances at unit level. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.