View source: R/load_data_herblayer.R
load_data_herblayer | R Documentation |
Fieldmap
databaseThis function queries the given database to retrieve data on vegetation
(ready for use in calculate_vegetation()
function).
year_main_survey
refers to year of the main vegetation survey
(source is table vegetation
),
while year
refers to year of recording of that specific species
(possibly different for spring flora; source is table herblayer
)
load_data_herblayer(
database,
plottype = NA,
forest_reserve = NA,
processed = TRUE
)
database |
name of |
plottype |
possibility to select only data for a certain plot type, e.g. 'CP' for Circular plot or 'CA' for Core area (the default NA means that data from all plots are retrieved) |
forest_reserve |
possibility to select only data for 1 forest reserve by giving the name of the forest reserve (the default NA means that data from all plots are retrieved) |
processed |
Should only processed and surveyed data be added? Defaults to TRUE (yes). |
Dataframe with vegetation data on the species level ('herb layer'), containing columns as species, coverage_id, browse_index_id, date_vegetation (= date of survey of specific species, different for spring flora and other flora in the same plot), year (= year of survey of specific species, possibly different for spring flora and other flora), ....
library(forrescalc)
# (add path to your own fieldmap database here)
path_to_fieldmapdb <-
system.file("example/database/mdb_bosres.sqlite", package = "forrescalc")
load_data_herblayer(path_to_fieldmapdb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.