checkBD: A function for doing checks on the TRES latest DB

View source: R/checkBD.R

checkBDR Documentation

A function for doing checks on the TRES latest DB

Description

This function will do a series of checks on the latest TRES DB (adults, chicks and broods) and returns a list with the results.

Usage

checkBD(dsn = ".", year, adultsNew = NULL, broodsNew = NULL, chicksNew = NULL, adultsOld = "Adultes_2004-2015.xlsx", broodsOld = "Couvee_2004-2015.xlsx", chicksOld = "Oisillons_2004-2015.xls", sheet = 1, stop = FALSE)

Arguments

dsn

Path to the location of the different databases

year

Year in which verfications are made

adultsNew

Excel file with the latest data

broodsNew

Excel file with the latest data

chicksNew

Excel file with the latest data

adultsOld

Excel file with the previous data

broodsOld

Excel file with the previous data

chicksOld

Excel file with the previous data

sheet

All data should be contained in the first sheet. The first sheet is read by default

stop

Logical. Whether the function should stop for some checks to prevent spurious further problems. Currently not ignored

Details

Returns a list with the different checks and problem lines. Elements in the list can be vectors, lists, data.frames, etc.

Value

Returns a list of class TREScheck.

Author(s)

Francois Rousseu, Nghia Tran and Audrey Bourret

See Also

checkShow, print.TREScheck


frousseu/BDTREScheck documentation built on Sept. 22, 2023, 3:53 a.m.