number_by | R Documentation |
District numbers in simulated plans are by and large random. This function will renumber the districts across all simulated plans in order of a provided quantity of interest.
number_by(data, x, desc = FALSE)
data |
a |
x |
|
desc |
|
a modified redist_plans
object. New district numbers will be
stored as an ordered factor variable in the district
column. The
district numbers in the plan matrix will match the levels of this factor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.