generate_predictions: Runs the main prediction, which is an ensemble as per...

View source: R/generate_predictions.R

generate_predictionsR Documentation

Runs the main prediction, which is an ensemble as per Kaufman, King, and Komisarchik (2018)

Description

Runs the main prediction, which is an ensemble as per Kaufman, King, and Komisarchik (2018)

Usage

generate_predictions(features, namecol, new.models = NULL, all_features = TRUE)

Arguments

features

A features object produced by the "generate_features" function

namecol

A string indicating the ncolumn containing the unique shape identifier

new.models

Default NULL. Should we use the built-in predictive models or new, user-generated ones?

Value

A vector of length corresponding to number of polygons in the shp.

Examples

filename = "CnclDist_July2012.shp"
namecol = "NAME"
shp = read_shapefiles(filename, namecol)
features = genreate_features(shp)
preds = generate_predictions(features, shp[[3]])

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