machine_predictor: Predict by raster stack and machine learning model

Description Usage Arguments Value Author(s)

View source: R/machine_predictor.R

Description

This functions applies one machine learning model on a given rasterstack

Usage

1
2
3
4
5
6
7
machine_predictor(
  rstack,
  mmodel,
  additionalRaster = FALSE,
  type = FALSE,
  index = FALSE
)

Arguments

rstack

list containing an raster stack with covariables for prediction based on the mmodel

mmodel

machine learning model

additionalRaster

rasters that are identical in each time step and should be added to each rasterstack

type

character string containing type of prediction (e.g. "prob" for probability); default to FALSE

index

in case of type = "prob" the index of the parameter of which the probability shold be returned

Value

stack with one prediction for each element of the input list

Author(s)

Wolfgang Hamer


whamer/papros documentation built on Feb. 6, 2021, 8:54 a.m.