Reputation: 7526
I am using the package raster
, but get an error with the arguments when trying to use the function getData()
. I am using examples directly from the documentation. For example:
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"
Has anyone encountered this issue?
Upvotes: 0
Views: 2528
Reputation: 37641
There is also a function called GetData
in the nlme
package. If you use that version of GetData, you will get this error message. Instead, please try
raster::getData('GADM', country='FRA', level=1)
Upvotes: 1