Skip to contents

Converts a vector of scientific names into a tibble containing the original names and their corresponding genera.

Usage

format_df(splist)

Arguments

splist

A character vector containing scientific names (e.g., "Panthera uncia").

Value

A tibble with two columns:

submitted_name

The original scientific names, trimmed of extra spaces.

or_genus_name

The first word (genus) extracted from each scientific name.

Details

This function performs basic validation on the input, ensuring it is a character vector with no missing values.

Note

This function is intended for internal use within the iucnr package.