View source: R/predictMaxNet.r
predictMaxNet | R Documentation |
This function is the same as the predict
function in the maxnet package, except that:
If the input is a data frame, the output is a vector as output (not a single-column matrix);
If the input is a SpatRaster
or Raster*
, the output is of the same type;
The default output is on the cloglog scale
The function can be explicitly called (versus doing, say, maxnet:::predict.maxnet
, which does not work even when that would be really useful...).
predictMaxNet(model, newdata, clamp = TRUE, type = "cloglog", ...)
model |
Object of class |
newdata |
Object of class |
clamp |
If |
type |
One of:
|
... |
Other arguments (unused). |
Numeric vector.
predict
from the raster package, predict
from the terra package, and maxnet
(see the predict
function therein)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.