process_bad_neighbor_groups: process_bad_neighbor_groups

Description Usage Arguments Value Examples

View source: R/process_bad_neighbor_groups.R

Description

This function is a wrapper function executing all necessary steps in generating the lists of bad neighbors.

Usage

1
process_bad_neighbor_groups(group_name, taxa)

Arguments

group_name

A string. The informal name of the taxon group to process (e.g. "Tree/Shrub")

taxa

A tibble. A table with a the name of the taxon to process along with the associated heirarchy homonym TSN string. The tibbles are typically loded from lookup tables in the "data" directory (see example). The heirarchy homonym TSN string can also be obtained from the [ITIS](https://www.itis.gov) website by searching for the taxon.

Value

A list of tibbles (data frames) containing the summary results for the Bad Neighbor Analysis from the export_bad_neighbor_list() function, and a summary tibble for all species currently documented in states from the state_all_species_query() function.

Examples

1
2
3
4
# load lookup tables
taxa <- readr::read_csv("data/tree_shrub_heirarchy_strings.csv")

trees_results <- process_bad_neighbor_groups("tree_shrub", taxa = taxa)

usgs-bis/bad-neighbor-invasives documentation built on Sept. 26, 2019, 7:34 a.m.