Function used to format structure data into a coherent framework.
formatStructured(dataOCC, type, varsOld, varsNew, projection, boundary)
An sf
object containing the locations of the species.
The species occurrence data. May be either a SpatialPointsDataFrame
, sf
or data.frame
object.
The type of observation model for the data. May be either: PO
, PA
or Counts
.
The names of the old variables in the model which need to be converted to something new.
The name of the new variables in the model which will be used in the full model.
The CRS object to add to the species occurrence data.
An sf object of the boundary of the study area, used to check if the data points are over the region.