Learn R Programming

sdm (version 1.2-55)

sdmAdapt: 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)

Value

an object with the same class as x

Arguments

x

an object of sdmdata or sdmModels

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

Run this code
if (FALSE) {
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



}

Run the code above in your browser using DataLab