check_year {RoMEBS}R Documentation

Consistency check of YEAR field

Description

THe function check if the currect value for YEAR field is reported in each data table.

Usage

check_year(TA, TB, TC, TE, TL, years, wd, Errors)

Arguments

TA

Haul data table according to MEDITS protocol (TA)

TB

Catch data table according to MEDITS protocol (TB)

TC

Biological data table according to MEDITS protocol (TC)

TE

Individual biological data table according to MEDITS protocol (TE)

TL

Litter data table according to MEDITS protocol (TL)

years

list of the unique YEAR values in haul data (TA) table

wd

working directory path defined by the user

Errors

logfile name

Details

TA, TB and TC tables are mandatory while TE and TL could be used where available (otherwise use NA value).

Value

The function returns FALSE when errors are detected in the YEAR field of the data tables.

Author(s)

I. Bitetto, W. Zupa

References

Anonymus. 2017. MEDITS-Handbook. Version n. 9. MEDITS Working Group. 106 pp.https://www.sibm.it/MEDITS 2011/principaledownload.htm

Examples

    wd <- tempdir()
    years <- unique(RoMEBS::TA$YEAR)
    Errors <- file.path(wd,"Logfiles","Logfile.dat")

    check_year(TA=RoMEBS::TA, TB=RoMEBS::TB,
    TC=RoMEBS::TC, TE=NA, TL=NA, years=years,
    wd=wd, Errors=Errors)

[Package RoMEBS version 0.2.02 Index]