sdmData: creating sdm Data object

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Creates sdmData objects including species (single or multiple) and explanatory variates

Usage

1
sdmData(train, predictors, formula, test, filename, crs)

Arguments

train

training data including species observations as a (data.frame or SpatialPoints or SpatialPointsDataFrames)

predictors

explanatory variables (predictors), defined as a raster object (RasterStack or RasterBrick).

formula

optional, species and different types of explanatory variables (e.g., factor) as well as coordinates can be specified

test

independent test data

filename

filename of the sdm data object to store in the disk (not implemented)

crs

optional, coordinate reference system

Details

sdmData can be used to create data object, for single or multiple species data and returns a singleSpecies or multipleSpecis data object, respectively or a SpeciesDataList when ths multiple species the coordinates of species observations are not the sama. sdmData can automatically detect the variables contain species data (if train is data.frame), but in formula, the species names can be specifies in the left hand side. In the right hand side of the formula the coordinate columns (if train is data.frame), explanatory variables that should be used as well as the factors can be specified (see examples).

Value

an object of class singleSpecies or multipleSpecies or SpeciesDataList

Author(s)

Babak Naimi naimi.b@gmail.com

http://biogeoinformatics.org

References

Naimi, B., Ara<c3><ba>jo, M.B. (2016) sdm: a reproducible and extensible R platform for species distribution modelling, Ecography, DOI: 10.1111/ecog.01881

See Also

#

Examples

1
#

sdmo documentation built on May 2, 2019, 5:47 p.m.

Related to sdmData in sdmo...