check_area {RoMEBS}R Documentation

Check if TX files have the same area

Description

The function works with data of a single year of survey and checks if TX files have the same area code.

Usage

check_area(DataTA, DataTB, DataTC, DataTE=NA, DataTL=NA, wd, suffix)

Arguments

DataTA

Haul data table according to MEDITS protocol (TA)

DataTB

Catch data table according to MEDITS protocol (TB)

DataTC

Biological data table according to MEDITS protocol (TC)

DataTE

Individual biological data table according to MEDITS protocol (TE)

DataTL

Litter data table according to MEDITS protocol (TL)

wd

working directory path defined by the user

suffix

Suffix string of the Logfile

Details

TA, TB and TC tables are mandatory while TE and TL could be used where available.

Value

The function returns TRUE if no error occurs, while FALSE is returned when there are differences in the AREA code among the TX 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()
    suffix="2020-03-05_time_h17m44s55"
    DataTA = RoMEBS::TA
    DataTB = RoMEBS::TB
    DataTC = RoMEBS::TC
    DataTE = RoMEBS::TE
    DataTL = RoMEBS::TL
    library(RoMEBS)
    check_area(DataTA, DataTB,DataTC,DataTE=NA,DataTL=NA, wd, suffix)

[Package RoMEBS version 0.2.02 Index]