Learn R Programming

redist (version 3.0.7)

redist.reduce.adjacency: Reduce Adjacency List

Description

Tool to help reduce adjacency lists for analyzing subsets of maps.

Usage

redist.reduce.adjacency(adj, keep_rows, adjacency)

Arguments

adj

A zero-indexed adjacency list. Required.

keep_rows

row numbers of precincts to keep

adjacency

Deprecated. Use adj. A zero-indexed adjacency list.

Value

zero indexed adjacency list with max value length(keep_rows) - 1

Examples

Run this code
# NOT RUN {
data(fl25_adj)
redist.reduce.adjacency(fl25_adj, c(2, 3, 4, 6, 21))
# }

Run the code above in your browser using DataLab