dshm_finalize_segments: Preparing segments for spatial analysis

Description Usage Arguments Details Value Author(s)

View source: R/dshm_finalize_segments.R

Description

dshm_finalize_segments calculates covariate statisitcs within each segment. It also corrects segments for land or other obstacles not relevant to the analysis.

Usage

1
2
dshm_finalize_segments(segment.data, land.data = NULL, covariates, fun,
  parallel = FALSE, ncores = NULL)

Arguments

segment.data

Segments as SpatialPolygonsDataFrame. You can use the function dshm_split_transects to create segments from transect lines.

land.data

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

covariates

List of covariate raters.

fun

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

parallel

If TRUE the function is run on multiple cores. Default is FALSE.

ncores

Number of cores if parallel is TRUE.

Details

For more information about splitting transects into segments as well as checking and correcting segments you can download the split_transects.pdf tutorial.

Value

Segments 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.