shrubspeciesfuel: Shrub species fuel loading

Description Usage Arguments Details Value Examples

View source: R/shrubspeciesfuel.R

Description

Calculates loading (kg/m2) of total or fine fuels corresponding to shrub species data

Usage

1
2
3
4
shrubspeciesfuel(x, type = "total", allometric = TRUE,
  excludeSSP = TRUE, equationNames = FALSE, var = FALSE,
  agg = "none", customParams = NULL, outside = "warning",
  na.rm = TRUE)

Arguments

x

data frame with columns 'plot', 'species', 'H' (mean height in cm), 'C' (cover in percent). Column 'group' may be used to specify a functional group to be used when the species has not a specific allometry (see details).

type

either 'total' (total fuel) or 'fine' (fine fuels)

allometric

wether to use allometric equations or bulk density estimates

excludeSSP

excludes subspecies information for species matching

equationNames

a flag to indicate that the name of species or group allometry or bulk density used is desired

var

a flag to indicate that variance of estimates is desired

agg

aggregation of results. Either 'none' or 'plot'

customParams

custom allometry parameter table (for species not in default params)

outside

Treament of values outside calibration range: either 'warning' (to prompt a warning) or 'missing' (prompt a warning and return NA)

na.rm

whether to exclude missing values when aggregating loading

Details

The function determines the allometry to be applied using the following rules, sequentially:

  1. If the species name is included in the list of species with parameter values, it takes the parameters from that species.

  2. If the species name is a synonym for a species included the list of species with parameter values, it takes the parameters from that species (and gives a warning).

  3. If the user has specified a column 'group' and the value is included in the list of valid groups, it takes the parameters from that group.

  4. If the species is listed within the checklist in 'species_groups', it takes the parameters from the group specified in that file.

  5. Otherwise, it gives a warning and no allometry is applied.

Value

a vector with species loading values (kg/m2)

Examples

1
2
3
4
5
6
7
plot = c(1,1,2,2,2)
species = c("Erica arborea","Genista cinerea", "Erica arborea", "Chamaerops humilis", "Sarothamnus scoparius")
H = c(60,70,200,100,10)
C = c(10,10,30, 20,5)
x = data.frame(plot, species, H, C, stringsAsFactors = FALSE)

shrubspeciesfuel(x)

spif-ctfc/medfuels documentation built on July 20, 2019, 5:57 a.m.