View source: R/calc_diam_plot_species.R
calc_diam_plot_species | R Documentation |
This function calculates for each plot, tree species, year and diameter class some values per hectare: number of stems, basal area and volume of standing trees (for coppice based on data on shoot level), and volume of logs (= lying deadwood).
calc_diam_plot_species(data_stems_calc, data_deadwood, plotinfo)
data_stems_calc |
dataframe on stem level measurements with variables
|
data_deadwood |
dataframe on logs with variables |
plotinfo |
dataframe on surveyed plots with variables |
dataframe with columns plot
, year
, tree_species
,
dbh_class_5cm
, basal_area_m2_ha
, volume_m3_ha
library(forrescalc)
# (add path to your own fieldmap database here)
path_to_fieldmapdb <-
system.file("example/database/mdb_bosres.sqlite", package = "forrescalc")
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_deadwood <- load_data_deadwood(path_to_fieldmapdb)
plotinfo <- load_plotinfo(path_to_fieldmapdb)
calc_diam_plot_species(data_stems_calc, data_deadwood, plotinfo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.