Learn R Programming

sdm (version 1.1-8)

Arith-methods: 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 objects using `+`

Arguments

Value

an object of class sdmModels

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

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

}

Run the code above in your browser using DataLab