我正在使用raster包,但在尝试使用函数getData()时,参数出现错误。我直接使用文档中的示例。例如:
require(raster)
getData("GADM", country = 'FRA', level =1)
Error in getData("GADM", country = "FRA", level = 1) :
unused arguments (country = "FRA", level = 1)
getData('ISO3')
Error in UseMethod("getData") :
no applicable method for 'getData' applied to an object of class "character"有没有人遇到过这个问题?
发布于 2017-02-20 03:47:47
在nlme包中还有一个名为GetData的函数。如果您使用该版本的GetData,则会收到此错误消息。相反,请尝试
raster::getData('GADM', country='FRA', level=1) https://stackoverflow.com/questions/42331940
复制相似问题