check_area {RoME} | R Documentation |
The function works with data of a single year of survey and checks if TX files have the same area code.
check_area(DataTA, DataTB, DataTC, DataTE=NA, DataTL=NA, year, wd, suffix)
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) |
year |
reference year for the analysis |
wd |
working directory path defined by the user |
suffix |
Suffix string of the Logfile |
TA, TB and TC tables are mandatory while TE and TL could be used where available.
The function returns TRUE if no error occurs, while FALSE is returned when there are differences in the AREA code among the TX tables.
I. Bitetto, W. Zupa
Anonymus. 2017. MEDITS-Handbook. Version n. 9. MEDITS Working Group. 106 pp.https://www.sibm.it/MEDITS 2011/principaledownload.htm
wd <- tempdir() suffix="2020-03-05_time_h17m44s55" DataTA = RoME::TA DataTB = RoME::TB DataTC = RoME::TC DataTE = RoME::TE DataTL = RoME::TL check_area(DataTA, DataTB,DataTC,DataTE=NA,DataTL=NA,year=2012, wd, suffix)