Arith-methods {sdm}R Documentation

Combine (merge) two sdmModels into a single object

Description

If two sets of models fitted in two separate sdmModels objects, they can be merged into a single sdmModels object using '+'.

Value

An object of class sdmModels.

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, 39:368-375, DOI: 10.1111/ecog.01881

Examples

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

df <- read.csv(file)

head(df) 

d <- sdmData(sp ~ b15 + NDVI, train = df)

d
#----


m1 <- sdm(sp ~ b15 + NDVI, data = d, methods = c('glm', 'gbm'))

m1

m2 <- sdm(sp ~ b15 + NDVI, data = d, methods = c('svm'))

m2

m <- m1 + m2

m


## End(Not run)


[Package sdm version 1.2-46 Index]