Learn R Programming

rgbif (version 0.7.0)

occurrencecount: Counts taxon concept records matching a range of filters.

Description

This function is deprecated.

Usage

occurrencecount(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, 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)

Arguments

scientificname
count only records where the scientific name matches that supplied, use an asterisk * for any name starting with preseding string (character). does not make use of extra knowledge of possible synonyms or of child taxa. For these functions, use
taxonconceptKey
unique key for taxon (numeric). Count only records which are for the taxon identified by the supplied numeric key, including any records provided under synonyms of the taxon concerned, and any records for child taxa (e.g. all genera and species within a f
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). Using a cellid is more efficient than using a bounding box for the same cell.
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.
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).

Value

  • A single numeric value - the number of records found in GBIF matching the query.

See Also

occ_count

Examples

Run this code
occurrencecount(scientificname = 'Accipiter erythronemius', coordinatestatus = TRUE)
occurrencecount(scientificname = 'Helianthus annuus', coordinatestatus = TRUE,
   year=2009)
occurrencecount(scientificname = 'Helianthus annuus', coordinatestatus = TRUE,
   year=2005, maxlatitude=20)

Run the code above in your browser using DataLab