tree_summarise: Calculate the equivalent diameter of trees with more than one...

View source: R/tree_summarise.R

tree_summariseR Documentation

Calculate the equivalent diameter of trees with more than one trunk

Description

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.

Usage

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.

Value

A data frame with the the equivalent diameter calculated.

Author(s)

Sollano Rabelo Braga sollanorb@gmail.com

References

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

Examples


library(forestmangr)
data("exfm18")
head(exfm18)

# Calculate the equivalent diameter of trees with more than one trunk:
eq_diam <- tree_summarise(exfm18, "DBH",tree="Tree", .groups=c("Plot", "Species") )
head(eq_diam, 10)


forestmangr documentation built on Nov. 24, 2023, 1:07 a.m.