powered by
Create County IDs
redist.county.id(counties)
A vector with an ID that corresponds from 1:n counties
vector of counties, required.
set.seed(2) counties <- sample(c(rep("a", 20), rep("b", 5))) redist.county.id(counties)
Run the code above in your browser using DataLab