spocc_taxon_query: Query many sources at once using spocc to get latitude and...

View source: R/dataFunctions.R

spocc_taxon_queryR Documentation

Query many sources at once using spocc to get latitude and longitude

Description

Query many sources at once using spocc to get latitude and longitude

Usage

spocc_taxon_query(
  taxon,
  limit = 10000,
  sources = c("gbif", "inat", "idigbio"),
  has_coords = TRUE,
  by_species = TRUE,
  verbose = TRUE,
  ...
)

Arguments

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

Value

data.frame of results

Examples

locations <- spocc_taxon_query("Myrmecocystus", limit=50)

bomeara/chapter2 documentation built on July 22, 2023, 3:19 a.m.