View source: R/calc_intact_deadwood.R
calc_intact_deadwood | R Documentation |
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.
calc_intact_deadwood(data_deadwood)
data_deadwood |
dataframe on logs with variables |
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).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.