# NOT RUN {
# load reference
#See details section on where to download the reference data
load("extra_gazetteers/urbanareas.rda")
x <- data.frame(species = letters[1:10],
decimallongitude = runif(100, -180, 180),
decimallatitude = runif(100, -90,90))
cc_urb(x, ref = urbanareas)
cc_urb(x, value = "flags", ref = urbanareas)
# }
Run the code above in your browser using DataLab