# NOT RUN {
data(en.vir)
data(bak.vir)
#envir<-raster::getData("worldclim",download=FALSE,var="bio",res=2.5)
#en.vir<-raster::brick(envir)
#back<-dismo::randomPoints(mask=en.vir,n=5000,ext=NULL,extf=1.1,
# excludep=TRUE,prob=FALSE,
# cellnumbers=FALSE,tryf=3,warn=2,
# lonlatCorrection=TRUE)
#bak.vir<-raster::extract(en.vir,back)
library(ape)
data(LappetMoths)
ref.seq<-LappetMoths$ref.seq[1:50,]
que.seq<-LappetMoths$que.seq[1:5,]
NBSI.out<-NBSI(ref.seq,que.seq,ref.add=NULL,
independence=TRUE,
model="RF",variables="SELECT",
en.vir=en.vir,bak.vir=bak.vir)
NBSI.out
### Add a parameter when additional reference coordinates are available ###
#ref.add<-LappetMoths$ref.add
#NBSI.out2<-NBSI(ref.seq,que.seq,ref.add=ref.add,
# independence=TRUE,
# model="RF",variables="SELECT",
# en.vir=en.vir,bak.vir=bak.vir)
#NBSI.out2
# }
Run the code above in your browser using DataLab