rF_predictions_to_polygons: Run An Existing rF In Predictive Mode

Description Usage Arguments Value

View source: R/segment_classification_functions.R

Description

Run an existing rF in predictive mode on mn and sd for each polygon, extracted from a raster

Usage

1
2
rF_predictions_to_polygons(rF_model, segments_shp, WV2image, append_shp = F,
  target_class = "EG", outp_shp)

Arguments

rF_model

an .rdata file that holds an rF classifier named "rF"

segments_shp

a polygon shapefile of landscape elements that need to be classified

WV2image

an image to extract mn and sd from, for each polygon, as input to the rF

append_shp

should the original fields of segments.shp be retained in the output?

target_class

(for rF classifiers only) if a target.class is given, only polygons predicted by the rF to be this class will be retained in the output

outp_shp

name for the output shapefile

Value

a polygon shapefile, akin to segments.shp that has one field, holding with the output of the rF


pieterbeck/CanHeMonR documentation built on May 25, 2019, 7:11 a.m.