Learn R Programming

rgbif (version 0.3.0)

occurrencelist_many: occurrencelist_many is the same as occurrencelist, but takes in a vector of species names.

Description

occurrencelist_many is the same as occurrencelist, but takes in a vector of species names.

Usage

occurrencelist_many(scientificname = NULL,
    taxonconceptkey = NULL, dataproviderkey = NULL,
    dataresourcekey = NULL, institutioncode = NULL,
    collectioncode = NULL, catalognumber = NULL,
    resourcenetworkkey = NULL, basisofrecordcode = NULL,
    minlatitude = NULL, maxlatitude = NULL,
    minlongitude = NULL, maxlongitude = NULL,
    minaltitude = NULL, maxaltitude = NULL,
    mindepth = NULL, maxdepth = NULL, cellid = NULL,
    centicellid = NULL, typesonly = NULL,
    georeferencedonly = NULL, coordinatestatus = NULL,
    coordinateissues = NULL, hostisocountrycode = NULL,
    originisocountrycode = NULL, originregioncode = NULL,
    startdate = NULL, enddate = NULL, startyear = NULL,
    endyear = NULL, year = NULL, month = NULL, day = NULL,
    modifiedsince = NULL, startindex = NULL,
    maxresults = 10, format = "brief", icon = NULL,
    mode = NULL, stylesheet = NULL, removeZeros = FALSE,
    writecsv = NULL, curl = getCurlHandle(),
    fixnames = "none", parallel = FALSE, cores = 4)

Arguments

scientificname
scientitic name of taxon (character, see example)
taxonconceptkey
unique key for taxon (numeric)
dataproviderkey
Filter records to those provided by the supplied numeric key for a data provider. See providers. (character)
dataresourcekey
Filter records to those provided by the supplied numeric key for a data resource See resources. (character)
institutioncode
Return only records from a given institution code.
collectioncode
Return only records from a given collection code.
catalognumber
Return only records from a given catalog number.
resourcenetworkkey
count only records which have been made available by resources identified as belonging to the network identified by the supplied numeric key.
basisofrecordcode
return only records with the specified basis of record. Supported values are: "specimen, observation, living, germplasm, fossil, unknown". (character)
minlatitude
return only records from locations with latitudes greater than the supplied value (southern hemisphere with negative latitudes). (numeric)
maxlatitude
return only records from locations with latitudes lower than the supplied value (southern hemisphere with negative latitudes). (numeric)
minlongitude
return only records from locations with longitudes greater than the supplied value (western hemisphere with negative longitudes). (numeric)
maxlongitude
return only records from locations with longitudes lower than the supplied value (western hemisphere with negative longitudes). (numeric)
minaltitude
return only records from altitudes greater than or equal to the supplied value. (integer)
maxaltitude
return only records from altitudes less than or equals to the supplied value. (integer)
mindepth
return only records from depth greater than or equal to the supplied value. (numeric 2 decimal places)
maxdepth
return only records from depth less than or equals to the supplied value. (numeric 2 decimal places)
cellid
identifier for a one degree cell (O - 64,799)
centicellid
identifier for a 0.1 degree cell within a one degree cell
typesonly
if set to "true", return only records with a type status specified.
georeferencedonly
This option is deprecated.
coordinatestatus
if set to "true", return only records with coordinates. If set to "false", return only records without coordinates.
coordinateissues
if set to "true", return only records for which the portal has detected possible issues in georeferencing. If set to "false", return only records for which the portal has not detected any such issues.
hostisocountrycode
return only records served by providers from the country identified by the supplied 2-letter ISO code.
originisocountrycode
return only records of occurrences which occurred within the country identified by the supplied 2-letter ISO code.
originregioncode
return only records of occurrences which occurred within the region identified by the supplied 3-letter code.
startdate
return only records occurring on or after the supplied date (format YYYY-MM-DD, e.g. 2006-11-28).
enddate
return only records occurring on or before the supplied date (format YYYY-MM-DD, e.g. 2006-11-28).
startyear
return only records from during or after the supplied year.
endyear
return only records from during or before the supplied year.
year
return only records from during the supplied year.
month
return only records from during the supplied month (expressed as an integer in the range 1 to 12).
day
return only records from during the supplied day of month (expressed as an integer in the range 1 to 31).
modifiedsince
return only records which have been indexed or modified in the GBIF data portal index on or after the supplied date (format YYYY-MM-DD, e.g. 2006-11-28).
startindex
return the subset of the matching records that starts at the supplied (zero-based index).
maxresults
max number of results (integer) (1-10000); defaults to 10
format
specifies the format in which the records are to be returned,
icon
(only when format is set to kml) specified the URL for an icon to be used for the KML Placemarks.
mode
Specifies whether the response data should (as far as possible) be the raw values originally retrieved from the data resource or processed (normalised) values used within the data portal (character)
stylesheet
Sets the URL of the stylesheet to be associated with the
removeZeros
remove records with both Lat Long zero values (logical)
writecsv
If path to a file is given, a text file is written out and a success message is returned to the console (logical)
curl
If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)
fixnames
One of "match","change","none", just keep those records that match original search term, change all names to the original search term (beware using this option), or do nothing, respectively. Default is "none".
parallel
Do calls in parallel or not. (default is FALSE)
cores
Number of cores to use in parallel call option (only used if parallel=TRUE)

Examples

Run this code
# Query for a many species
splist <- c('Accipiter erythronemius', 'Junco hyemalis', 'Aix sponsa')
out <- occurrencelist_many(splist, coordinatestatus = TRUE, maxresults = 100)
gbifdata(out)
gbifmap_list(out)

Run the code above in your browser using DataLab