res <- occ(query = c('Ursus','Accipiter','Rubus'), from = 'bison', limit=10)
class(res)
res_cleaned <- clean_spocc(input=res)
class(res_cleaned) # now with classes occdat and occclean
#### THESE AREN'T WORKING...
# Country cleaning
res <- occ(query = 'Ursus americanus', from = 'gbif', limit=500,
gbifopts = list(hasCoordinate=TRUE))
res$gbif
plot(res)
res <- occ(query = 'Ursus americanus', from = 'gbif', limit=1200,
gbifopts = list(hasCoordinate=TRUE))
plot(res)
res2 <- clean_spocc(res, country = "Mexico")
plot(res2)
# Clean provider duplicates
res <- occ(query = 'Ursus americanus', from = c('gbif','inat'), limit=300)
plot(res)
res2 <- clean_spocc(input=res, provider_duplicates = TRUE)
Run the code above in your browser using DataLab