calc_deadw_decay_plot_species: aggregate parameters by decay stage, plot, tree species and...

View source: R/calc_deadw_decay_plot_species.R

calc_deadw_decay_plot_speciesR Documentation

aggregate parameters by decay stage, plot, tree species and year

Description

This function calculates for each plot, tree species and year the volume logs and standing dead wood per hectare and per decay stage.

Usage

calc_deadw_decay_plot_species(
  plotinfo,
  data_deadwood = NA,
  data_dendro_calc = NA
)

Arguments

plotinfo

dataframe on surveyed plots with variables plot_id, plottype, forest_reserve, survey_trees, survey_deadw, period and year_dendro (output of function load_plotinfo())

data_deadwood

dataframe on logs with variables plot_id, plottype, date_dendro, species, decaystage, calc_volume_m3, period and year (output of function load_data_deadwood())

data_dendro_calc

dataframe on stems (shoots and trees) as given from the function calc_variables_stem_level()

Value

dataframe with columns plot, year, tree_species, decaystage, vol_log_m3_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_deadwood <- load_data_deadwood(path_to_fieldmapdb)
data_dendro <- load_data_dendrometry(path_to_fieldmapdb)
data_shoots <- load_data_shoots(path_to_fieldmapdb)
data_stems <- compose_stem_data(data_dendro, data_shoots)
# omit argument 'example_dataset = TRUE' below to use all height models
height_model <- load_height_models(example_dataset = TRUE)
data_stems_calc <- calc_variables_stem_level(data_stems, height_model)
data_dendro_calc <- calc_variables_tree_level(data_dendro, data_stems_calc)
plotinfo <- load_plotinfo(path_to_fieldmapdb)
calc_deadw_decay_plot_species(plotinfo, data_deadwood, data_dendro_calc)


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