calc_reg_plot_height_species: aggregate parameters by plot, tree height class, species and...

View source: R/calc_reg_plot_height_species.R

calc_reg_plot_height_speciesR Documentation

aggregate parameters by plot, tree height class, species and year

Description

This function calculates for each plot, tree height class, species and year the number of regeneration (or interval with mean and confidence interval using a log transformation) and the approximate rubbing damage percentage per hectare for regeneration. For core area plots, these variables are calculated for each subplot.

Usage

calc_reg_plot_height_species(data_regeneration)

Arguments

data_regeneration

dataframe on tree regeneration with variables plot_id, plottype, subplot_id, height_class, species, nr_of_regeneration, rubbing_damage_number, period, year, subcircle, plotarea_ha, min_number_of_regeneration and max_number_of_regeneration.

Value

dataframe with columns plot, subplot, year, height_class, species, approx_rubbing_damage_perc, mean_number_of_regeneration_ha, lci_number_of_regeneration_ha, uci_number_of_regeneration_ha and approx_nr_regeneration_ha.

Examples

library(forrescalc)
# (add path to your own fieldmap database here)
path_to_fieldmapdb <-
  system.file("example/database/mdb_bosres.sqlite", package = "forrescalc")
data_regeneration <- load_data_regeneration(path_to_fieldmapdb)
calc_reg_plot_height_species(data_regeneration)


inbo/forrescalc documentation built on Sept. 28, 2024, 11:45 a.m.