check_date_haul {RoME} | R Documentation |
Check if in TB, TC and TE the date by haul is the same of the one reported in TA
check_date_haul(DataTA, Data, year, wd, suffix)
DataTA |
Haul data table according to MEDITS protocol (TA) |
Data |
Data frame of one of the following TX table: TB, TC, TE, TL |
year |
reference year for the analysis |
wd |
working directory path defined by the user |
suffix |
Suffix string of the Logfile |
The function check whethe in one of the TX file allowed in Data argument there are date consistent with the one reported in the haul data table (TA).
The function returns TRUE if no error occurs, while FALSE is returned when in the Date data frame there is one or more date not included in the TA tables.
I. Bitetto, W. Zupa
Anonymus. 2017. MEDITS-Handbook. Version n. 9. MEDITS Working Group. 106 pp. http://www.sibm.it/MEDITS 2011/principaledownload.htm
wd <- tempdir() suffix="2020-03-05_time_h17m44s55" DataTA = RoME::TA Data = RoME::TB year=2009 check_date_haul(DataTA, Data, year, wd, suffix)