predict_raster | R Documentation |
Predict using stars class raster
predict_raster( model, predictors = read_raster(), include_prob = TRUE, month = NA, drop = TRUE, ... )
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 |
stars object with one or two layers (see include_prob
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.