check_individual_weightTC {RoME} | R Documentation |
The function compares the obserbed
check_individual_weightTC(DataTC,LW=NA,year,wd,suffix,verbose=FALSE)
DataTC |
Biological data table according to MEDITS protocol (TC) |
LW |
data frame of the a and b parameters by species, area and sex |
year |
reference year for the analysis |
wd |
working directory path defined by the user |
suffix |
Suffix string of the Logfile |
verbose |
bulean parameter, if TRUE returns messages about the progress of the elaboration |
The warning is given when difference between the sum of estimated individual weights (by haul, species and sub-samples) and the WEIGHT_OF_THE_SAMPLE_MEASURED is greater than 50% for at least one record. This check is based on the table LW contained in package, where the length-weight relationship coefficients are reported by species, area and sex.
The file Comparison_estimated_observed_weight_in_TC.csv is automatically saved in the working directory in order to easily detect the samples with this differences in total weight. For all the records the percentage difference between observed and estimated weight is reported.
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" TC = RoME::TC[1:20,] check_individual_weightTC(DataTC=TC,year=2007, wd=wd, suffix=suffix)