全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1732 0
2019-10-13
大家好,我想要在R里用Maxent模型,但总是提示文件不存在
以下是我的代码

maxent <- ("maxent.jar")

outdir <- ("OutputDirectory")

gridfolder <- ("D:/TIFF/asc")

occurrencelocations<-("VariablesAtArtemisiaannua.csv")

backgroundlocations<-("VariablesAtArtemisiaannuaBg.csv")

additionalargs="autorun=true,plots=true,writeplotdata=true,visible=false,randomseed=true,writebackgroundpredictions=false,replicates=10,replicatetype=subsample,randomtestpoints=50,redoifexists,writemess=false,writeclampgrid=true,askoverwrite=false,pictures=true,outputgrids=true,outputformat=raw"

contributionthreshold <- 5

correlationthreshold <- 0.9

betamultiplier=seq(2,6,0.5)

library("MaxentVariableSelection")

VariableSelection(maxent,outdir,gridfolder,occurrencelocations,backgroundlocations,additionalargs,contributionthreshold,correlationthreshold,betamultiplier)


R提示错误

Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer",  :


  Cannot create a RasterLayer object from this file. (file does not exist)

我想请问是哪个文件出了问题,该怎么解决呢
谢谢大家



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群