calc_intact_deadwood: Calculate bole and crown volume of intact deadwood

View source: R/calc_intact_deadwood.R

calc_intact_deadwoodR Documentation

Calculate bole and crown volume of intact deadwood

Description

In Core Areas, some lying deadwood is marked as 'complete tree' by giving variable intact_fragm value 10 (intact) instead of 20 (fragment) to save time (while in general all fragments are measured separately). This function calculates the total volume (sum of bole and crown volume) for this intact deadwood and keeps the initial volume in case of fragments.

Usage

calc_intact_deadwood(data_deadwood)

Arguments

data_deadwood

dataframe on logs with variables plot_id, plottype, date_dendro, species, decaystage, intact_fragm, calc_volume_m3, period and year (output of function load_data_deadwood()), in which calc_volume_m3 should be replaced by a more precise calculation

Value

A similar dataframe (data_deadwood) in which the volume of intact deadwood is replaced by a volume calculated based on tariffs. Intermediate results vol_crown_m3 and vol_bole_m3 are added as columns (which are NA in case of deadwood fragments).

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


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