Learn R Programming

rgbif (version 0.9.6)

occ_facet: Facet GBIF occurrences

Description

Facet GBIF occurrences

Usage

occ_facet(facet, facetMincount = NULL, ...)

Arguments

facet
(character) a character vector of length 1 or greater. Required.
facetMincount
(numeric) minimum number of records to be included in the faceting results
...
Further named curl parameters (see xxx), or facet parameters, such as for paging based on each facet variable, e.g., country.facetLimit

Value

A list of tibbles (data.frame's) for each facet (each element of the facet parameter).

Details

All fields can be faceted on except for last "lastInterpreted", "eventDate", and "geometry"

If a faceted variable is not found, it is silently dropped, returning nothing for that query

See Also

occ_search also has faceting ability, but can include occurrence data in addition to facets

Examples

Run this code
## Not run: 
# occ_facet(facet = "country")
# 
# # facetMincount - minimum number of records to be included
# #   in the faceting results
# occ_facet(facet = "country", facetMincount = 30000000L)
# occ_facet(facet = c("country", "basisOfRecord"))
# 
# # paging with many facets
# occ_facet(
#   facet = c("country", "basisOfRecord", "hasCoordinate"),
#   country.facetLimit = 3,
#   basisOfRecord.facetLimit = 6
# )
# 
# # paging
# ## limit
# occ_facet(facet = "country", country.facetLimit = 3)
# ## offset
# occ_facet(facet = "country", country.facetLimit = 3,
#   country.facetOffset = 3)
# ## End(Not run)

Run the code above in your browser using DataLab