dist_euc | R Documentation |
Calculate Euclidean Distances
dist_euc(plans, ncores = 1)
plans |
redist_plans object or plans_matrix where each row indicates a district assignment and each column is a plan |
ncores |
numeric. Number of cores to use. Default is 1. |
matrix of plan distances
data(nh) data(nh_m) # For a single plan (distance is trivial, 0): dist_euc(plans = nh$r_2020) # Or many plans: dist_euc(plans = nh_m[, 3:5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.