Learn R Programming

redist (version 3.0.7)

redist.county.id: Create County IDs

Description

Create County IDs

Usage

redist.county.id(counties)

Arguments

counties

vector of counties, required.

Value

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

Examples

Run this code
# NOT RUN {
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