check_weight {RoMEBS} | R Documentation |
The total weight and total number in the haul have to be consistent. The check is quantitative if there is information related to average individual weight. Alternatively the check is qualitative (through a plot).
check_weight(ResultDataTB,DataTargetSpecies,wd,suffix)
ResultDataTB |
Catch data table according to MEDITS protocol (TB). |
DataTargetSpecies |
Information related to individual weight of target and not target species. |
wd |
Working directory selected by the user. |
suffix |
Suffix string of the Logfile. |
The check of the consistency of total weight and total number in TB is performed after computing the mean weight for each species in each haul; a list of the weight intervals is provided in the package (DataTargetSpecies); this list was created in on the basis of the data collected in GSA 10 and 18 from 1994 to 2014. Of course, the user should update and complete as much as possible the table in order to allow RoMEBS to detect errors on the basis of the updated weight intervals. This check is divided in a quantitative control (using the ranges mentioned above) and a qualitative control (using plots of the mean weight). The function gives a warning message. A maximum of 20 graphs will have been displayed in the R console and a maximum of 20 .tif files (6 plots per file) will have been stored in Graphs directory. The species with at least an occurrence of 10 hauls are plotted and saved.
The function returns always TRUE, because the outcome of the function is a warning that does not lock the execution of the RoMEBS checks. The presence of inconsistencies in the data is reported in the logfile stored in the "Logfiles" subdirectory of the "wd" user-defined directory.
I. Bitetto, W. Zupa
Anonymus. 2017. MEDITS-Handbook. Version n. 9. MEDITS Working Group. 106 pp. http://www.sibm.it/MEDITS 2011/principaledownload.htm
library(MEDITS) library(RoMEBS) wd=tempdir() suffix= "2020-03-05_time_h17m44s55" check_weight(TB,DataTargetSpecies,wd,suffix)