RL_sp_list: Obtain list of all species on Red List

Description Usage Arguments Value Author(s)

View source: R/RL_sp_list.R

Description

Obtain a list and basic info about all species on the Red List. This is a wrapper function for rredlist::rl_sp() used for all species.

Usage

1
2
3
4
5
6
RL_sp_list(
  key,
  retain.taxonomic.info = "some",
  retain.population = FALSE,
  retain.category = TRUE
)

Arguments

key

Character string. IUCN Red List API key - available from https://apiv3.iucnredlist.org/api/v3/token

retain.taxonomic.info

(optional) Character. Options to retain all of the taxonomic info columns ("all"), only Kingdom and Class ("some"), or none ("none"). If "none", species binomial name is still provided. Defaults to "some".

retain.population

(optional) Logical. Retain the population information? Defaults to FALSE.

retain.category

(optional) Logical. Retain the assessment category? Defaults to TRUE.

Value

A dataframe with one row per species containing IUCN ID (column taxonid), taxonomic information, and Red List category.

Author(s)

Matt Lewis, matthewlewis896@gmail.com


matthewlewis896/redlistManipulatr documentation built on Jan. 22, 2022, 1:01 p.m.