formatStructured {intSDM}R Documentation

formatStructured: Function to add structured data into the workflow.

Description

Function used to format structure data into a coherent framework.

Usage

formatStructured(dataOCC, type, varsOld, varsNew, projection, boundary)

Arguments

dataOCC

The species occurrence data. May be either a SpatialPointsDataFrame, sf or data.frame object.

type

The type of observation model for the data. May be either: PO, PA or Counts.

varsOld

The names of the old variables in the model which need to be converted to something new.

varsNew

The name of the new variables in the model which will be used in the full model.

projection

The CRS object to add to the species occurrence data.

boundary

An sf object of the boundary of the study area, used to check if the data points are over the region.

Value

An sf object containing the locations of the species.


[Package intSDM version 2.0.2 Index]