tree_summarise {forestmangr}R 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)


[Package forestmangr version 0.9.6 Index]