This function retrieves the important fields of table Shoots (of all periods) from the given database and checks for missing data or wrong input.

check_data_shoots(database, forest_reserve = "all")

Arguments

database

name of Fieldmap/Access database (with specific Fieldmap structure) including path

forest_reserve

name of forest reserve for which the records in the database should be checked (defaults to "all")

Value

Dataframe with inconsistent data with ID's and additional columns aberrant_field (which column is wrong) and anomaly (what is wrong with the input)

Examples

library(forrescalc)
# (add path to your own fieldmap database here)
path_to_fieldmapdb <-
  system.file("example/database/mdb_bosres.sqlite", package = "forrescalc")
check_data_shoots(path_to_fieldmapdb)
#> # A tibble: 0 × 7
#> # ℹ 7 variables: plot_id <int>, tree_measure_id <int>, shoot_id <int>,
#> #   period <dbl>, aberrant_field <chr>, anomaly <chr>, aberrant_value <lgl>
check_data_shoots(path_to_fieldmapdb, forest_reserve = "Everzwijnbad")
#> # A tibble: 0 × 7
#> # ℹ 7 variables: plot_id <int>, tree_measure_id <int>, shoot_id <int>,
#> #   period <dbl>, aberrant_field <chr>, anomaly <chr>, aberrant_value <lgl>