View source: R/generate_features.R
generate_features | R Documentation |
Note that this function takes some time to run, especially with larger sets of districts.
generate_features(shp, verbose = TRUE)
shp |
A shapefile object produced by "read_shapefiles" |
verbose |
Default TRUE. Inherited from compactness_wrapper(). |
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.
filename = "CnclDist_July2012.shp"
shp = read_shapefiles(filename)
features = generate_features(shp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.