This function calculates for each plot and year the volume logs per hectare and per decay stage.

calculate_logs_decay_plot(data_deadwood)

Arguments

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())

Value

dataframe with columns plot, year, decaystage, vol_log_m3_ha

Examples

if (FALSE) {
#change path before running
library(forrescalc)
data_deadwood <-
  load_data_deadwood("C:/MDB_BOSRES_selectieEls/FieldMapData_MDB_BOSRES_selectieEls.accdb")
calculate_logs_decay_plot(data_deadwood)
}