View source: R/generate_predictions.R
generate_predictions | R Documentation |
Runs the main prediction, which is an ensemble as per Kaufman, King, and Komisarchik (2018)
generate_predictions(features, namecol, new.models = NULL, all_features = TRUE)
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? |
A vector of length corresponding to number of polygons in the shp.
filename = "CnclDist_July2012.shp"
namecol = "NAME"
shp = read_shapefiles(filename, namecol)
features = genreate_features(shp)
preds = generate_predictions(features, shp[[3]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.