predict_raster: Predict using stars class raster

View source: R/predict.R

predict_rasterR Documentation

Predict using stars class raster

Description

Predict using stars class raster

Usage

predict_raster(
  model,
  predictors = read_raster(),
  include_prob = TRUE,
  month = NA,
  drop = TRUE,
  ...
)

Arguments

model

either a 'model_fit' object or a file description to one

predictors

a table (data.frame or tibble) or raster (terra or stars)

include_prob

logical, if TRUE include probabilities of occurrence

month

numeric or NA, if not NA then add a layer with value equal to this month number

drop

logical, if TRUE drop unused layers in the predictors

...

arguments passed to predict

Value

stars object with one or two layers (see include_prob)


BigelowLab/calanusthreshold documentation built on May 12, 2022, 5:06 a.m.