check_quasiidentical_records {RoMEBS}R Documentation

Function checking the presence of quasi-identical records.

Description

Two or more "quasi-identical records" occurred when all the fields are respectively equal, except: TYPE_OF_FILE, AREA, GEAR, VESSEL, YEAR, RIGGING, DOORS, for TA table; TYPE_OF_FILE, AREA, VESSEL, YEAR for TB and TC tables.These specifc fields are allowed to be identical.

Usage

check_quasiidentical_records(Result,wd,suffix,TE_format="MEDITS")

Arguments

Result

Haul data table according to MEDITS protocol (TA), or Catch data table (TB) or Biological data table (TC).

wd

Working directory selected by the user.

suffix

Suffix string of the Logfile.

TE_format

type of TE format. Allowed values: 'MEDITS' and 'rapana'

Details

The checks execution is stopped if any quasi-identical record was found. In a give survey the following fields (of TA table) should be identical: 'TYPE_OF_FILE', 'AREA', 'VESSEL', 'GEAR', 'RIGGING', 'DOORS' and 'YEAR'. The function checks whether any differences occur in these fields in each yearly survey. The same think is done for all the other tables where these fields occur.

Value

The function returns TRUE if no error occurs, FALSE is at least a quasi-identical record was found.

Author(s)

I. Bitetto, W. Zupa

References

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

Examples

library(MEDITS)
library(RoMEBS)
wd=tempdir()
suffix= "2020-03-05_time_h17m44s55"
check_quasiidentical_records(TA,wd,suffix)
# check_quasiidentical_records(TB,wd,suffix)
# check_quasiidentical_records(TC,wd,suffix)


[Package RoMEBS version 0.3.0 Index]