smalianwob | R Documentation |
Function used to calculate the volume without bark of trees using the Smalian method.
This function has integration with dplyr, so it can be used inside a pipe, along with the
group_by
function.
smalianwob(
df,
di,
hi,
bt,
tree,
.groups = NA,
di_mm_to_cm = FALSE,
hi_cm_to_m = FALSE,
bt_mm_to_cm = FALSE
)
df |
A data frame. |
di |
Quoted name of the section diameter variable, in centimeters. |
hi |
Quoted name of the section height variable, in meters |
bt |
Quoted name of the bark thickness variable, in centimeters. |
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 |
hi_cm_to_m |
Boolean argument that, if |
bt_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:
smalianwb
, For calculation of volume with bark using the Smalian method,
huberwb
, for calculation of volume with bark using the Huber method,
huberwob
, for calculation of volume without bark the Huber method.
library(forestmangr)
data("exfm7")
head(exfm7)
# Calculate the volume without bark using Smalian's method:
smalianwob(exfm7,"di_wb", "hi", "bark_t", "TREE",bt_mm_to_cm=TRUE)
# Using pipes:
library(dplyr)
exfm7 %>%
group_by(TREE) %>%
smalianwob("di_wb", "hi", "bark_t")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.