iskandarblue
iskandarblue

Reputation: 7526

Raster package error

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

Answers (1)

G5W
G5W

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

Related Questions