## Not run:
# occ_count(basisOfRecord='OBSERVATION')
# occ_count(georeferenced=TRUE)
# occ_count(country='DE')
# occ_count(country='CA', georeferenced=TRUE, basisOfRecord='OBSERVATION')
# occ_count(datasetKey='9e7ea106-0bf8-4087-bb61-dfe4f29e0f17')
# occ_count(year=2012)
# occ_count(taxonKey=2435099)
# occ_count(taxonKey=2435099, georeferenced=TRUE)
# occ_count(protocol='DWC_ARCHIVE')
#
# # Just schema
# occ_count(type='schema')
#
# # Counts by basisOfRecord types
# occ_count(type='basisOfRecord')
#
# # Counts by basisOfRecord types
# occ_count(typeStatus='ALLOTYPE')
# occ_count(typeStatus='HOLOTYPE')
#
# # Counts by countries. publishingCountry must be supplied (default to US)
# occ_count(type='countries')
#
# # Counts by year. from and to years have to be supplied, default to 2000 and 2012
# occ_count(type='year', from=2000, to=2012)
#
# # Counts by publishingCountry, must supply a country (default to US)
# occ_count(type='publishingCountry')
# occ_count(type='publishingCountry', country='BZ')
#
# # Pass on options to httr
# library('httr')
# # res <- occ_count(type='year', from=2000, to=2012, config=progress())
# # res
# ## End(Not run)
Run the code above in your browser using DataLab