huberwb | R Documentation |
Function used to calculate the volume with bark of trees using the Huber method.
This function has integration with dplyr, so it can be used inside a pipe, along with the
group_by
function.
huberwb(df, di, section_length, tree, .groups = NA, di_mm_to_cm = FALSE)
df |
A data frame. |
di |
Quoted name of the section diameter variable, in centimeters. |
section_length |
Quoted name of the section length variable, in meters |
tree |
Quoted name of the tree variable. used to differentiate the trees' sections. If this argument is |
.groups |
Optional argument. Quoted name(s) of additional grouping variables that can be added to differentiate subdivisions of the data.
If this argument is |
di_mm_to_cm |
Boolean argument that, if |
Data frame with volume values by section.
Sollano Rabelo Braga sollanorb@gmail.com
Campos, J. C. C. and Leite, H. G. (2017) Mensuracao Florestal: Perguntas e Respostas. 5a. Vicosa: UFV.
Complementary functions:
huberwob
, For calculation of volume without bark using the Huber method,
smalianwb
, for calculation of volume with bark using the Smalian method,
smalianwob
, for calculation of volume without bark the Smalian method.
library(forestmangr)
data("exfm8")
head(exfm8)
# Calculate the volume with bark using the Huber method:
huberwb(exfm8,"di_wb", "sec_length", "TREE")
# Using pipes:
library(dplyr)
exfm8 %>%
group_by(TREE) %>%
huberwb("di_wb", "sec_length")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.