做地理探测器的时候遇上了这样的问题,有大佬讲解一下我该在怎么改吗?
gdlist <- lapply(ESVlist, function(x){
gdm(FVC ~ LUCC + DEM + Slope + Aspect + GDP + Topography + Population + Precipitation + Temperatures + NPP + Siol + Vegetation,
continuous_variable = c("LUCC","DEM","Slope","Aspect","GDP","Topography","Population","Precipitation","Temperatures","NPP","Siol","Vegetation"),
data = x,
discmethod = "quantile",
discitv = 12)
})
出现error是
Error in if (method == "equal") { : 需要TRUE/FALSE值的地方不可以用缺少值
此外: Warning message:
In max(op.qv, na.rm = TRUE) :
Error in if (method == "equal") { : 需要TRUE/FALSE值的地方不可以用缺少值
拜托了,有大佬知道这该怎么改吗


雷达卡


京公网安备 11010802022788号







