Skip to contents

Renders a species tibble — as returned by species_for_cells() — as either an interactive DT::datatable (html output) or a static gt::gt table (pdf/docx output). Taxon and model columns become clickable links in the interactive version.

Usage

tbl_species(d_spp, interactive = TRUE)

Arguments

d_spp

tibble with columns from species_for_cells(): mdl_seq, sp_cat, sp_common, sp_scientific, taxon_id, taxon_authority, er_code, er_score, is_mmpa, is_mbta, area_km2, avg_suit, pct_cat

interactive

logical; if TRUE (default) return a DT datatable, otherwise return a gt table

Value

a DT htmlwidget or a gt_tbl