Legacy alternative to occ_search
occ_data(
taxonKey = NULL,
scientificName = NULL,
country = NULL,
publishingCountry = NULL,
hasCoordinate = NULL,
typeStatus = NULL,
recordNumber = NULL,
lastInterpreted = NULL,
continent = NULL,
geometry = NULL,
geom_big = "asis",
geom_size = 40,
geom_n = 10,
recordedBy = NULL,
recordedByID = NULL,
identifiedByID = NULL,
basisOfRecord = NULL,
datasetKey = NULL,
eventDate = NULL,
catalogNumber = NULL,
year = NULL,
month = NULL,
decimalLatitude = NULL,
decimalLongitude = NULL,
elevation = NULL,
depth = NULL,
institutionCode = NULL,
collectionCode = NULL,
hasGeospatialIssue = NULL,
issue = NULL,
search = NULL,
mediaType = NULL,
subgenusKey = NULL,
repatriated = NULL,
phylumKey = NULL,
kingdomKey = NULL,
classKey = NULL,
orderKey = NULL,
familyKey = NULL,
genusKey = NULL,
speciesKey = NULL,
establishmentMeans = NULL,
degreeOfEstablishment = NULL,
protocol = NULL,
license = NULL,
organismId = NULL,
publishingOrg = NULL,
stateProvince = NULL,
waterBody = NULL,
locality = NULL,
occurrenceStatus = "PRESENT",
gadmGid = NULL,
coordinateUncertaintyInMeters = NULL,
verbatimScientificName = NULL,
eventId = NULL,
identifiedBy = NULL,
networkKey = NULL,
verbatimTaxonId = NULL,
occurrenceId = NULL,
organismQuantity = NULL,
organismQuantityType = NULL,
relativeOrganismQuantity = NULL,
iucnRedListCategory = NULL,
lifeStage = NULL,
isInCluster = NULL,
distanceFromCentroidInMeters = NULL,
skip_validate = TRUE,
limit = 500,
start = 0,
curlopts = list(http_version = 2)
)
An object of class gbif_data
, which is a S3 class list, with
slots for metadata (meta
) and the occurrence data itself
(data
), and with attributes listing the user supplied arguments
and whether it was a "single" or "many" search; that is, if you supply
two values of the datasetKey
parameter to searches are done, and
it's a "many". meta
is a list of length four with offset, limit,
endOfRecords and count fields. data
is a tibble (aka data.frame)
(numeric) A taxon key from the GBIF backbone. All included
and synonym taxa are included in the search, so a search for aves with
taxononKey=212 will match all birds, no matter which species. You can pass
many keys to occ_search(taxonKey=c(1,212))
.
A scientific name from the GBIF backbone. All included and synonym taxa are included in the search.
(character) The 2-letter country code (ISO-3166-1)
in which the occurrence was recorded. enumeration_country()
.
The 2-letter country code (as per ISO-3166-1) of
the country in which the occurrence was recorded. See
enumeration_country()
.
(logical) Return only occurrence records with lat/long
data (TRUE
) or all records (FALSE
, default).
Type status of the specimen. One of many options.
Number recorded by collector of the data, different from GBIF record number.
Date the record was last modified in GBIF, in ISO 8601 format: yyyy, yyyy-MM, yyyy-MM-dd, or MM-dd. Supports range queries, 'smaller,larger' (e.g., '1990,1991', whereas '1991,1990' wouldn't work).
The source supplied continent.
"africa"
"antarctica"
"asia"
"europe"
"north_america"
"oceania"
"south_america"
Continent is not inferred but only populated if provided by the dataset publisher. Applying this filter may exclude many relevant records.
(character) Searches for occurrences inside a polygon in Well Known Text (WKT) format. A WKT shape written as either
"POINT"
"LINESTRING"
"LINEARRING"
"POLYGON"
"MULTIPOLYGON"
For Example, "POLYGON((37.08 46.86,38.06 46.86,38.06 47.28,37.08 47.28, 37.0 46.8))". See also the section WKT below.
(character) One"bbox" or "asis" (default).
(integer) An integer indicating size of the cell. Default: 40.
(integer) An integer indicating number of cells in each dimension. Default: 10.
(character) The person who recorded the occurrence.
(character) Identifier (e.g. ORCID) for the person who recorded the occurrence
(character) Identifier (e.g. ORCID) for the person who provided the taxonomic identification of the occurrence.
(character) The specific nature of the data record. See here.
"FOSSIL_SPECIMEN"
"HUMAN_OBSERVATION"
"MATERIAL_CITATION"
"MATERIAL_SAMPLE"
"LIVING_SPECIMEN"
"MACHINE_OBSERVATION"
"OBSERVATION"
"PRESERVED_SPECIMEN"
"OCCURRENCE"
(character) The occurrence dataset uuid key. That can be found in the dataset page url. For example, "7e380070-f762-11e1-a439-00145 eb45e9a" is the key for Natural History Museum (London) Collection Specimens.
(character) Occurrence date in ISO 8601 format: yyyy, yyyy-MM, yyyy-MM-dd, or MM-dd. Supports range queries, 'smaller,larger' ('1990,1991', whereas '1991,1990' wouldn't work).
(character) An identifier of any form assigned by the source within a physical collection or digital dataset for the record which may not unique, but should be fairly unique in combination with the institution and collection code.
The 4 digit year. A year of 98 will be interpreted as AD 98. Supports range queries, 'smaller,larger' (e.g., '1990,1991', whereas 1991, 1990' wouldn't work).
The month of the year, starting with 1 for January. Supports range queries, 'smaller,larger' (e.g., '1,2', whereas '2,1' wouldn't work).
Latitude in decimals between -90 and 90 based on WGS84. Supports range queries, 'smaller,larger' (e.g., '25,30', whereas '30,25' wouldn't work).
Longitude in decimals between -180 and 180 based on WGS84. Supports range queries (e.g., '-0.4,-0.2', whereas '-0.2,-0.4' wouldn't work).
Elevation in meters above sea level. Supports range queries, 'smaller,larger' (e.g., '5,30', whereas '30,5' wouldn't work).
Depth in meters relative to elevation. For example 10 meters below a lake surface with given elevation. Supports range queries, 'smaller,larger' (e.g., '5,30', whereas '30,5' wouldn't work).
An identifier of any form assigned by the source to identify the institution the record belongs to.
(character) An identifier of any form assigned by the source to identify the physical collection or digital dataset uniquely within the text of an institution.
(logical) Includes/excludes occurrence records
which contain spatial issues (as determined in our record interpretation),
i.e. hasGeospatialIssue=TRUE
returns only those records with spatial
issues while hasGeospatialIssue=FALSE
includes only records without
spatial issues. The absence of this parameter returns any record with or
without spatial issues.
(character) One or more of many possible issues with each occurrence record. Issues passed to this parameter filter results by the issue. One of many options. See here for definitions.
(character) Query terms. The value for this parameter can be a simple word or a phrase. For example, search="puma"
(character) Media type of "MovingImage", "Sound", or "StillImage".
(numeric) Subgenus classification key.
(character) Searches for records whose publishing country is different to the country where the record was recorded in.
(numeric) Phylum classification key.
(numeric) Kingdom classification key.
(numeric) Class classification key.
(numeric) Order classification key.
(numeric) Family classification key.
(numeric) Genus classification key.
(numeric) Species classification key.
(character) provides information about whether an organism or organisms have been introduced to a given place and time through the direct or indirect activity of modern humans.
"Introduced"
"Native"
"NativeReintroduced"
"Vagrant"
"Uncertain"
"IntroducedAssistedColonisation"
(character) Provides information about degree to which an Organism survives, reproduces, and expands its range at the given place and time. One of many options.
(character) Protocol or mechanism used to provide the occurrence record. One of many options.
(character) The type license applied to the dataset or record.
"CC0_1_0"
"CC_BY_4_0"
"CC_BY_NC_4_0"
(numeric) An identifier for the Organism instance (as opposed to a particular digital record of the Organism). May be a globally unique identifier or an identifier specific to the data set.
(character) The publishing organization key (a UUID).
(character) The name of the next smaller administrative region than country (state, province, canton, department, region, etc.) in which the Location occurs.
(character) The name of the water body in which the locations occur
(character) The specific description of the place.
(character) Default is "PRESENT". Specify whether search should return "PRESENT" or "ABSENT" data.
(character) The gadm id of the area occurrences are desired from. https://gadm.org/.
A number or range between 0-1,000,000 which specifies the desired coordinate uncertainty. A coordinateUncertainty InMeters=1000 will be interpreted all records with exactly 1000m. Supports range queries, 'smaller,larger' (e.g., '1000,10000', whereas '10000,1000' wouldn't work).
(character) Scientific name as provided by the source.
(character) identifier(s) for a sampling event.
(character) names of people, groups, or organizations.
(character) The occurrence network key (a uuid) who assigned the Taxon to the subject.
(character) The taxon identifier provided to GBIF by the data publisher.
(character) occurrence id from source.
A number or range which specifies the desired organism quantity. An organismQuantity=5 will be interpreted all records with exactly 5. Supports range queries, smaller,larger (e.g., '5,20', whereas '20,5' wouldn't work).
(character) The type of quantification system used for the quantity of organisms. For example, "individuals" or "biomass".
(numeric) A relativeOrganismQuantity=0.1 will be interpreted all records with exactly 0.1 The relative measurement of the quantity of the organism (a number between 0-1). Supports range queries, "smaller,larger" (e.g., '0.1,0.5', whereas '0.5,0.1' wouldn't work).
(character) The IUCN threat status category.
"NE" (Not Evaluated)
"DD" (Data Deficient)
"LC" (Least Concern)
"NT" (Near Threatened)
"VU" (Vulnerable)
"EN" (Endangered)
"CR" (Critically Endangered)
"EX" (Extinct)
"EW" (Extinct in the Wild)
(character) the life stage of the occurrence. One of many options.
(logical) identify potentially related records on GBIF.
A number or range. A value of "2000,*" means at least 2km from known centroids. A value of "0" would mean occurrences exactly on known centroids. A value of "0,2000" would mean within 2km of centroids. Max value is 5000.
(logical) whether to skip wellknown::validate_wkt call or not. passed down to check_wkt(). Default: TRUE
Number of records to return. Default: 500. Note that the per
request maximum is 300, but since we set it at 500 for the function, we
do two requests to get you the 500 records (if there are that many).
Note that there is a hard maximum of 100,000, which is calculated as the
limit+start
, so start=99,000
and limit=2000
won't work
Record number to start at. Use in combination with limit to
page through results. Note that we do the paging internally for you, but
you can manually set the start
parameter
(list)
This function is a legacy alternative to occ_search()
. It is not
recommended to use occ_data()
as it is not as flexible as occ_search()
.
New search terms will not be added to this function and it is only supported
for legacy reasons.