Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tree_summarise

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")
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

Forest Mensuration and Management

v0.9.3
MIT + file LICENSE
Authors
Sollano Rabelo Braga [aut, cre, cph], Marcio Leles Romarco de Oliveira [aut], Eric Bastos Gorgens [aut]
Initial release
2021-01-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.