Learn R Programming

GSIF (version 0.5-5.1)

merge: Merge multiple predictions

Description

Merges objects of class "SpatialPredictions" or "RasterBrickSimulations" and produces average predictions where the two objects overlap spatially. If the predictions are available at different resolutions, then it downscales all other grids to the smallest grid cell size using bicubic splines (for predictions) i.e. nearest neighbor algorithm (for simulations). Weigths can be passed via the RMSE.l argument, otherwise they will be estimated from validation slot (if objects are of the class "SpatialPredictions").

Usage

# S4 method for SpatialPredictions,SpatialPredictions
merge(x, y, …, RMSE.l = NULL, silent = TRUE)

Arguments

x

object of class "SpatialPredictions" or "RasterBrickSimulations"

y

object of class "SpatialPredictions" or "RasterBrickSimulations"

...

additional objects of class "SpatialPredictions" or "RasterBrickSimulations"

RMSE.l

numeric; list of mean prediction errors for each object (these are used as weights during the averaging)

silent

logical; specifies whether to print out the progress and used RMSE's

Value

Returns an object of type "SpatialPixelsDataFrame" or "RasterBrickSimulations" that contains only the merged values.

References