Skip to contents

Retrieve the family name for a given genus using taxonomic data from the Australian Plant Census (APC).

Usage

get_apc_genus_family_lookup(genus, resources = load_taxonomic_resources())

Arguments

genus

A character vector of genus names for which to retrieve the corresponding family names.

resources

The taxonomic resources required to make the lookup. Loading this can be slow, so call load_taxonomic_resources separately to speed up this function and pass the resources in.

Value

A data frame with two columns: "genus", indicating the genus name, and "family", indicating the corresponding family name from the APC.

Examples

 get_apc_genus_family_lookup(genus = c("Acacia", "Eucalyptus"))
#> 

#> Loading resources into memory...
#> 
===========================
=====================================================
================================================================================
#> ...done
#> # A tibble: 2 × 2
#>   genus      family   
#>   <chr>      <chr>    
#> 1 Acacia     Fabaceae 
#> 2 Eucalyptus Myrtaceae