View source: R/dataFunctions.R
spocc_taxon_query | R Documentation |
Query many sources at once using spocc to get latitude and longitude
spocc_taxon_query(
taxon,
limit = 10000,
sources = c("gbif", "inat", "idigbio"),
has_coords = TRUE,
by_species = TRUE,
verbose = TRUE,
...
)
taxon |
The taxon to get. If a vector, loops over it. |
limit |
The limit of records per site to get (default is maximum of any site) |
sources |
Vector of sources (see ?spocc::occ) |
has_coords |
Boolean for whether to only return records with longitude and latitude data |
by_species |
Boolean: if TRUE, separates the taxon into species first (and searches for the higher level taxon as well) |
verbose |
Boolean: if TRUE, print out progress |
... |
Other arguments to pass to spocc::occ |
data.frame of results
locations <- spocc_taxon_query("Myrmecocystus", limit=50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.