View source: R/tree_summarise.R
tree_summarise | R Documentation |
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)
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: |
vwb |
Optional argument. Quoted name of the volume with bark variable, in cubic meters. Default: |
vwob |
Optional argument. Quoted name of the volume without bark variable, in cubic meters. Default: |
A data frame with the the equivalent diameter calculated.
Sollano Rabelo Braga sollanorb@gmail.com
Soares, C. P. B., Paula Neto, F. and Souza, A. L. (2012) Dendrometria e Inventario Florestal. 2nd ed. Vicosa: UFV.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.