dshm_fill_grid: Preparing prediction grid for spatial analysis

Description Usage Arguments Details Value Author(s)

View source: R/dshm_fill_grid.R

Description

dshm_fill_grid calculates covariate statisitcs within each grid cell in the prediction grid. It also corrects the prediction grid for land or other obstacles not relevant to predictions.

Usage

1
dshm_fill_grid(empty.grid, land.data = NULL, cov, fun, ncores = 2)

Arguments

empty.grid

Empty grid as SptialPolygonsDataFrame. You can use the function dshm_make_grid to create a prediction grid.

land.data

A SptialPolygonsDataFrame such as land (for marine species) or other obstacles not relevant to predictions.

cov

List of covriate rasters. Raster names have to match those in the segment dataset.

fun

Function for covariate statistcs within each cell (i.e. mean or median).

ncores

Number of cores (this function is runs in parallel only).

Details

The grid is used for Hurdle model predictions. It is thus important that raster names in cov are the same of those in the segment dataset. For more information about creating and preparing a prediction grid you can download the build_grid.pdf tutorial.

Value

Prediction grid as SptialPolygonsDataFrame with following data attached:

Author(s)

Filippo Franchini filippo.franchini@outlook.com


FilippoFranchini/dshm documentation built on April 25, 2020, 9:40 p.m.