get_n_spp_pivtbl: Get pivot table of species richness by park and year

Description Usage Arguments Value Examples

Description

Get pivot table of species richness by park and year

Usage

1
get_n_spp_pivtbl(cfg, park, year, xlsx = NULL)

Arguments

cfg

NPS configuration list object; see get_nps_config

park

NPS park abbreviation

year

year of data to extract

xlsx

optional Excel spreadsheet path to write out

Value

pivottabler::PivotTable R6 object. Render with n_spp_tbl$renderPivot()

Examples

1
2
3
4
5
6
7
8
cfg  <- get_nps_config(system.file(package="npstools", "nps_config.yaml"))
park <- "CABR"
year <- 2015

n_spp_pivtbl <- get_n_spp_pivtbl(cfg, park, year)

# render pivot table as html widget
n_spp_pivtbl$renderPivot()

ecoquants/npstools documentation built on May 10, 2019, 9:50 a.m.