Learn R Programming

ArctosR (version 0.1.3)

get_record_count: Count number of records in a query

Description

Request from Arctos the total number of records that match a specific query. A list of possible query keys can be obtained from the output of get_query_parameters.

Usage

get_record_count(..., api_key = NULL)

Value

The number of records matching the given query, as an integer.

Arguments

...

Query parameters and their values to pass to Arctos to search. For example, `scientific_name = "Canis lupus"``

api_key

(character) The API key to use for this request. The default, NULL, uses the package's default API key.

Examples

Run this code
library(ArctosR)

if (interactive()) {
  count <- get_record_count(
    scientific_name = "Canis lupus", guid_prefix = "MSB:Mamm"
  )
}

Run the code above in your browser using DataLab