get_spp_codes: Get species codes

Description Usage Arguments Value

View source: R/calc_fuels_coeffs.R

Description

Internal function only, see 'estimate_fuel_loads.R' for call. We want a list of all the species codes included in the dataset (and including only those species actually present in the dataset). The tidy dataset returned by aggregate_treelist() (with a row for each plot_id:inv_date and a column for the proportion of basal area for each species) already includes the correct species codes. We want to scan the column names to see the codes which were present in the dataset.

Usage

1
get_spp_codes(dataset)

Arguments

dataset

A tidy dataset with observation ID info and overstory data (the proportion of basal area occupied by each species, 'pBA_species'). 'dataset' is the result of calling aggregate_treelist() on the observed treelist data.

Value

A vector listing the 4-letter codes for each species included in the dataset, for feeding to the 'get_fuels_coefficients' functions.


danfosterfire/Rfuels documentation built on May 28, 2019, 11:04 p.m.