predFun: Prediction function for mlr regression model applied to...

Description Usage Arguments Value

View source: R/predFun.R

Description

Prediction function for mlr regression model applied to raster data

Usage

1
predFun(model, data, lev = NULL)

Arguments

model

mlr fitted model

data

data passed from raster

lev

named list of RasterLayer factor attribute tables. Each table is a data.frame; the first column has to be named 'ID' and contains a list of unique pixel values in the raster; the second column contains the factors that correspond to each pixel value.

Value

RasterLayer object


stevenpawley/CalibratedClassifier documentation built on Oct. 16, 2019, 4:18 a.m.