get_conservation_status {iucnr}R Documentation

Get Conservation Status of Species

Description

This function retrieves the conservation status of species from the iucn_data dataset. It is vectorized to handle multiple species names and optimized using data.table for performance.

Usage

get_conservation_status(splist)

Arguments

splist

A character vector of species names to search for in the iucn_data dataset.

Value

A data.table with species names and their corresponding conservation status or "no match found".

Examples


species <- c("Panthera uncia", "Cedrela odorata")
result <- get_conservation_status(splist = species)
print(result)


[Package iucnr version 0.0.0.1 Index]