ssdm包拥有良好的用户交互界面很容易上手,并且包含的算法非常全面,但因为本小白只会用点无脑简单的,交互界面不太稳定经常bug遂转战代码,但代码写的也不怎么样(笑死
library(sp)
library(SSDM)
library(raster)
qie = read.csv("D:/ssdm/POINT/qie.csv")#数据点
Occurrences = data.frame(x= qie$Longitude, y= qie$Latitude)#提取经纬度
#Occurrences <- subset(Occurrences)#筛选点位
bx = load_var(path = "D:\\ssdm\\ENVIRONMENT0322\\yhy\\PRESENT", files = NULL,
format = ".asc",categorical = NULL, Norm = TRUE, tmp = TRUE, verbose = TRUE,
GUI = FALSE)#读取环境变量
#glm <- modelling('GLM', Occurrences, bx, Xcol = 'x', Ycol = 'y')#glm拟合
#SVM <- modelling('SVM', Occurrences, bx, Xcol = 'x', Ycol = 'y')#svm拟合
rf <- modelling(