check_trees_evolution: check table 'Trees' from 'Fieldmap' database for...

View source: R/check_trees_evolution.R

check_trees_evolutionR Documentation

check table Trees from Fieldmap database for inconsistencies between periods

Description

This function retrieves the important fields of table Trees (of all periods) from the given database and checks for anomalies between periods, such as zombies, shifters, outlier_height, outlier_diameter or walkers.

Usage

check_trees_evolution(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_trees_evolution(path_to_fieldmapdb)
check_trees_evolution(path_to_fieldmapdb, forest_reserve = "Everzwijnbad")


inbo/forrescalc documentation built on Sept. 28, 2024, 11:45 a.m.