genus_match: Match Genus Names Against Peru Mammals Database

View source: R/pm_direct_match.R

genus_matchR Documentation

Match Genus Names Against Peru Mammals Database

Description

Performs direct matching of genus names against the unique genera listed in the peru_mammals database. Useful for Rank 1 (genus-only) names.

Usage

genus_match(df, target_df = NULL)

Arguments

df

A data frame or tibble containing the genus names to be matched. Must include column: Orig.Genus

target_df

A data frame representing the peru_mammals database. Must include column: genus

Details

This function is typically used for names submitted at the genus level (Rank 1). When a genus is matched, all species of that genus in peru_mammals can be retrieved for further processing (e.g., suggesting possible species to the user).

Value

A tibble with an additional logical column genus_match indicating whether the genus was successfully matched (TRUE) or not (FALSE), plus column Matched.Genus for matched records.


perumammals documentation built on Jan. 6, 2026, 5:06 p.m.