View source: R/plans_helpers.R
prec_cooccurrence | R Documentation |
For a map with n
precincts Returns an n
-by-n
matrix, where each
entry measures the fraction of the plans in which the row and column
precincts were in the same district.
prec_cooccurrence(plans, which = NULL, sampled_only = TRUE, ncores = 1)
plans |
a redist_plans object. |
which |
|
sampled_only |
if |
ncores |
the number of parallel cores to use in the computation. |
a symmetric matrix the size of the number of precincts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.