predict_save: Predict to a raster layer, save it and return the path...

Description Usage Arguments

View source: R/utilities.R

Description

This takes a raster_layer or raster_stack, a model object and a character vector as filename, predicts a new raster_layer using the model object, saves it to path and returns that path

Usage

1
predict_save(object, model, path, format = "GTiff", ...)

Arguments

object

A Raster* object. The names of the single layers have to match the variables in "model".

model

A model that is used to generate predictions from "object"

path

A character vector, the predicted Raster* object will be stored under this path.

...

Further parameters passed on to raster::predict


sitscholl/rebecka_package documentation built on Aug. 25, 2020, 4:20 a.m.