tree_summarise function

Calculate the equivalent diameter of trees with more than one trunk

Calculate the equivalent diameter of trees with more than one trunk

This function uses takes the square root of the diameters squared sum, in order to estimate the equivalent diameter of trees. Other supplied variables are summed up, or averaged, depending on the variable.

tree_summarise(df, dbh, tree, .groups = NA, vwb = NA, vwob = NA)

Arguments

  • df: A data frame.
  • dbh: Quoted name of the diameter at breast height variable.
  • tree: Quoted name of the tree variable. used to differentiate the trees' sections. If this argument is missing, the defined groups in the data frame will be used. If there are no groups in the data, the function will fail.
  • .groups: Optional argument. Quoted name(s) of grouping variables that can be added to differentiate subdivisions of the data. Default: NA.
  • vwb: Optional argument. Quoted name of the volume with bark variable, in cubic meters. Default: NA.
  • vwob: Optional argument. Quoted name of the volume without bark variable, in cubic meters. Default: NA.

Returns

A data frame with the the equivalent diameter calculated.

Examples

library(forestmangr) data("exfm18") head(exfm18) : eq_diam <- tree_summarise(exfm18, "DBH",tree="Tree", .groups=c("Plot", "Species") ) head(eq_diam, 10)

References

Soares, C. P. B., Paula Neto, F. and Souza, A. L. (2012) Dendrometria e Inventario Florestal. 2nd ed. Vicosa: UFV.

Author(s)

Sollano Rabelo Braga sollanorb@gmail.com

  • Maintainer: Sollano Rabelo Braga
  • License: MIT + file LICENSE
  • Last published: 2024-12-01