redist.county.relabel | R Documentation |
Relabel Discontinuous Counties
redist.county.relabel(adj, counties, simplify = TRUE)
adj |
adjacency list |
counties |
character vector of county names |
simplify |
boolean - TRUE returns a numeric vector of ids, while FALSE appends a number when there are multiple connected components. |
character vector of county names
set.seed(2)
data(fl25)
data(fl25_adj)
counties <- sample(c(rep("a", 20), rep("b", 5)))
redist.county.relabel(fl25_adj, counties)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.