check_individual_weightTC {RoMEBS}R Documentation

Check of observed and estimated total weight in the haul

Description

The function compares the obserbed

Usage

check_individual_weightTC(DataTC,LW=NA,wd,suffix,verbose=FALSE)

Arguments

DataTC

Biological data table according to MEDITS protocol (TC)

LW

data frame of the a and b parameters by species, area and sex

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

Details

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.

Value

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.

Author(s)

I. Bitetto, W. Zupa

References

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

Examples

    wd <- tempdir()
    suffix="2020-03-05_time_h17m44s55"
    TC = RoMEBS::TC[1:20,]
    check_individual_weightTC(DataTC=TC, wd=wd, suffix=suffix)

[Package RoMEBS version 0.2.02 Index]