https://github.com/cran/rgbif
Raw File
Tip revision: 59b72670d80bc2fb2a68d847f828808bcc8a6078 authored by John Waller on 23 May 2024, 12:20:02 UTC
version 3.8.0
Tip revision: 59b7267
occ_count_.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/occ_count_.R
\name{occ_count_}
\alias{occ_count_}
\alias{occ_count_country}
\alias{occ_count_pub_country}
\alias{occ_count_year}
\alias{occ_count_basis_of_record}
\title{Get quick pre-computed occurrence counts of a limited number of dimensions.}
\usage{
occ_count_country(publishingCountry = NULL)

occ_count_pub_country(country = NULL)

occ_count_year(year = NULL)

occ_count_basis_of_record(curlopts = list())
}
\arguments{
\item{publishingCountry}{The 2-letter country code (as per ISO-3166-1)
the country from which the occurrence was published.}

\item{country}{(character) The 2-letter country code (ISO-3166-1)
in which the occurrence was recorded.}

\item{year}{The 4 digit year. Supports range queries, 'smaller,larger'
(e.g., '1990,1991', whereas 1991, 1990' wouldn't work).}

\item{curlopts}{(list) curl options.}
}
\value{
A \code{data.frame} of counts.
}
\description{
Get quick pre-computed occurrence counts of a limited number of dimensions.
}
\details{
Get quick pre-computed counts of a limited number of dimensions.

\code{occ_count_country()} will return a data.frame with occurrence counts by
country. By using \code{occ_count_country(publishingCountry="DK")} will
return the occurrence contributions Denmark has made to each country.

\code{occ_count_pub_country()} will return a data.frame with occurrence counts by
publishing country. Using \code{occ_count_pub_country(country="DK")}, will return
the occurrence contributions each country has made to that focal \code{country=DK}.

\code{occ_count_year()} will return a data.frame with the total occurrences
mediated by GBIF for each year. By using \code{occ_counts_year(year="1800,1900")}
will only return counts for that range.

\code{occ_count_basis_of_record()} will return a data.frame with total occurrences
mediated by GBIF for each basis of record.
}
\examples{
\dontrun{
# total occurrence counts for all countries and iso2 places
occ_count_country()  
# the occurrences Mexico has published in other countries 
occ_count_country("MX") 
# the occurrences Denmark has published in other countries 
occ_count_country("DK")

# the occurrences other countries have published in Denmark
occ_count_pub_country("DK")
# the occurrences other countries have published in Mexico
occ_count_pub_country("MX")

# total occurrence counts for each year that an occurrence was 
# recorded or collected.
occ_count_year()
# supports ranges
occ_count_year("1800,1900")

# table of occurrence counts by basis of record
occ_count_basis_of_record()

}
}
\seealso{
\code{\link[=occ_count]{occ_count()}}
}
back to top