adapt: Adapting sdm* objects in the new version

sdmAdaptR Documentation

Adapting sdm* objects in the new version

Description

The structure of the sdmdata and sdmModels classes were slightly changed in the new version of the package (> 1.2-X). If an sdmdata or sdmModels object is created and saved in an old version of the package (e.g., 1.1-8), using the sdmAdapt function, its structure is modified and adapted to the new version.

Usage

sdmAdapt(x)


Arguments

x

an object of sdmdata or sdmModels

Value

an object with the same class as x

Author(s)

Babak Naimi naimi.b@gmail.com

https://www.r-gis.net/

https://www.biogeoinformatics.org/

References

Naimi, B., Araujo, M.B. (2016) sdm: a reproducible and extensible R platform for species distribution modelling, Ecography, DOI: 10.1111/ecog.01881

See Also

#

Examples

## Not run: 
file <- system.file("external/model.sdm", package="sdm")

m <- read.sdm(file) # an sdmModels Object (fitted using old version of sdm)

m <- sdmAdapt(m)

m




## End(Not run)

babaknaimi/sdm documentation built on April 4, 2024, 1:45 p.m.