sumTreeDBHDist: sumTreeDBHDist: calculates DBH distribution of trees

Description Usage Arguments Value Examples

View source: R/sumTreeDBHDist.R

Description

This function calculates DBH distribution by 10cm size classes. Must run importData first.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
sumTreeDBHDist(
  status = c("all", "live", "dead"),
  speciesType = c("all", "native", "exotic"),
  units = c("density", "ba"),
  park = "all",
  from = 2007,
  to = 2018,
  QAQC = FALSE,
  locType = "VS",
  panels = 1:4,
  dist_m = NA,
  output,
  ...
)

Arguments

status

Filter by live, dead, or all. Acceptable options are:

"all"

Includes all standing trees

"live"

live trees only

"dead"

dead trees only

speciesType

Allows you to filter on native, exotic or include all species.

"all"

Default. Returns all species.

"native"

Returns native species only

"exotic"

Returns exotic species only

units

Allows you to choose which metric to calculate: basal area or stem density

"density"

Default. Returns stems/ha

"ba"

Returns basal area in sq.m/ha

dist_m

Filter trees by a distance that is less than or equal to the specified distance in meters of the tree to the center of the plot. If no distance is specified, then all trees will be selected. For example, to select an area of trees that is 100 square meters in area, use a distance of 5.64m.

Value

returns a dataframe with one row for each plot and either density or BA

Examples

1
2
3
importData()
tree_diam_dist <-sumTreeDBHDist(park = 'RICH', speciesType = 'native', from = 2015, to = 2018, units = 'ba')
head(tree_diam_dist)

KateMMiller/forestMIDNarch documentation built on April 9, 2021, 3:50 p.m.