bdq_meyer: Classify a forest for selective cutting using the Meyer BDq...

View source: R/bdq_meyer.R

bdq_meyerR Documentation

Classify a forest for selective cutting using the Meyer BDq method

Description

This function can be used to plan and execute selective cuttings of a native forest, without damaging the forest's natural structure.

Usage

bdq_meyer(
  df,
  plot,
  dbh,
  plot_area,
  class_interval = 5,
  dbh_min = 5,
  licourt_index = 2,
  output = "table"
)

Arguments

df

A data frame.

plot

Quoted name of the plot variable. used to differentiate the plot's trees, and calculate the number of sampled plots.

dbh

Quoted name of the diameter at breast height variable, in cm.

plot_area

Quoted name of the plot area variable, or a numeric vector with the plot area value. The plot area value must be in square meters.

class_interval

Numeric value for the class interval used to classify the data. Default: 5.

dbh_min

Numeric value for minimum diameter value to be considered in the classifications. dbh values smaller than this will be dismissed from the classification. Default: 5.

licourt_index

Numeric value for the start licourt index used. Default: 2.

output

Character value for the desired output. Can be either "table" for the classified data table, "model" to get a lm object with the linear model fitted, "coefs" to get a vector with the Meyer coefficients, or "full", to get a list with all restuls. Default: "table".

Value

a data frame, a lm object, a vector or a list, according to the output argument.

Author(s)

Eric Bastos Gorgens e.gorgens@gmail.com

References

Souza, A. L. and Soares, C. P. B. (2013) Florestas Nativas: estrutura, dinamica e manejo. Vicosa: UFV.

Examples

library(forestmangr)
data("exfm20")
head(exfm20)

# To get the table with the regulated forest:
bdq_meyer(exfm20, "transect", "dbh", 1000)

# Use different class interval values to get different results:
bdq_meyer(exfm20, "transect", "dbh", 1000, class_interval = 10)

# It's possible to get different outputs:
bdq_meyer(exfm20, "transect", "dbh", 1000, output="model")
bdq_meyer(exfm20, "transect", "dbh", 1000, output="coefs")
bdq_meyer(exfm20, "transect", "dbh", 1000, output="full")



forestmangr documentation built on Nov. 24, 2023, 1:07 a.m.