generate_features: Note that this function takes some time to run, especially...

View source: R/generate_features.R

generate_featuresR Documentation

Note that this function takes some time to run, especially with larger sets of districts.

Description

Note that this function takes some time to run, especially with larger sets of districts.

Usage

generate_features(shp, verbose = TRUE)

Arguments

shp

A shapefile object produced by "read_shapefiles"

verbose

Default TRUE. Inherited from compactness_wrapper().

Value

A data frame, n by p, where n is the number of districts in the shapefile, and p is 17 plus the number of columns in the metadata.

Examples

filename = "CnclDist_July2012.shp"
shp = read_shapefiles(filename)
features = generate_features(shp)

aaronrkaufman/compactness documentation built on June 11, 2025, 6:45 a.m.