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.
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
}