Description Usage Arguments Value Examples
This function allows a user to query the AntWeb database by any taxonomic rank or full species name.
1 2 3 4 5 |
genus |
An ant genus name |
species |
a species name |
scientific_name |
An easier way to pass the Genus and species name together, especially when the data are derived from other packages. |
georeferenced |
Default is |
bbox |
A lat long bounding box. Format is |
type |
A holotype |
habitat |
A fuzzy search by any habitat |
country |
A country name |
min_date |
A lower date bound in the format |
max_date |
An upper date bound in the format |
min_elevation |
A lower elevation bound |
max_elevation |
An upper elevation bound |
limit |
A numeric value to limit number of records |
offset |
An offset best used with limit as a way to paginate records |
quiet |
If true, any informative messages will be suppressed |
data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # data <- aw_data(genus = "acanthognathus", species = "brevicornis")
# data3 <- aw_data(genus = "acanthognathus", species = "brevicornis", georeferenced = TRUE)
# data2 <- aw_data(scientific_name = "acanthognathus brevicornis")
# sandstone <- aw_data(genus = "Aphaenogaster", habitat = "sandstone")
# data_genus_only <- aw_data(genus = "acanthognathus", limit = 25)
# leaf_cutter_ants <- aw_data(genus = "acromyrmex")
# data <- aw_data(genus = "Technomyrmex", bbox = '37.77,-122.46,37.76,-122.47')
# Search just using a bounding box
# data <- aw_data(bbox = '37.77,-122.46,37.76,-122.47')
# Search by a elevation band
# aw_data(min_elevation = 1500, max_elevation = 2000)
# When you throw a really specimen rich band like below, you'll get a huge number of requests.
# Only the first 1000 records will download first.
# aw_data(min_elevation = 200, max_elevation = 400)
# aw_data(min_date = '1980-01-01', max_date = '1981-01-01')
# fail <- aw_data(scientific_name = "auberti levithorax") # This should fail gracefully
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.