This function queries the given database to retrieve data on vegetation (ready for use in calculate_vegetation function).

load_data_vegetation(database, plottype = NA, forest_reserve = NA)

Arguments

database

name of fieldmap/access database (with specific fieldmap structure) including path

plottype

possibility to select only data for a certain plot type, e.g. 'Circular plot' or '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)

Value

Dataframe with vegetation data, containing columns as total_herb_cover, total_shrub_cover, total_tree_cover, total_soildisturbance_game, date_vegetation (= date of vegetation survey), year_record (= year of vegetation survey), year (= year of vegetation survey, derived from date_vegetation if available, otherwise from year_record), ....

Examples

if (FALSE) {
#change path before running
library(forrescalc)
load_data_vegetation("C:/MDB_BOSRES_selectieEls/FieldMapData_MDB_BOSRES_selectieEls.accdb")
}