Learn R Programming

redist (version 4.2.0)

redist.county.id: Create County IDs

Description

Create County IDs

Usage

redist.county.id(counties)

Value

A vector with an ID that corresponds from 1:n counties

Arguments

counties

vector of counties, required.

Examples

Run this code
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