View source: R/calc_veg_plot.R
calc_veg_plot | R Documentation |
This function calculates for each plot (subplot in case of core area) and year the total coverage and the number of species in the vegetation layer. Year refers to year of the main vegetation survey (source is table "data_vegetation"), and will in some cases differ from the year of the spring flora survey.
calc_veg_plot(data_vegetation, data_herblayer)
data_vegetation |
dataframe on vegetation with variables ... |
data_herblayer |
dataframe on vegetation in the species level ('herb layer') with variables ... |
dataframe with columns plot
, subplot
, date
, year
(year of
main vegetation survey, possible deviating year of spring survey not taken
into account), number_of_tree_species
and min/max/mid cover of the
different vegetation layers (moss, herb, shrub, tree), the waterlayer
and
since 2015 also of the soildisturbance
by game.
library(forrescalc)
# (add path to your own fieldmap database here)
path_to_fieldmapdb <-
system.file("example/database/mdb_bosres.sqlite", package = "forrescalc")
data_vegetation <- load_data_vegetation(path_to_fieldmapdb)
data_herblayer <- load_data_herblayer(path_to_fieldmapdb)
calc_veg_plot(data_vegetation, data_herblayer)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.