check_individual_weightTE {RoMEBS}R Documentation

Consistency of individual weights (according to length-weight relationship)

Description

The function checks the difference between observed and estimated individual weight in percentage.

Usage

check_individual_weightTE(DataTE,LW, wd, suffix,verbose=FALSE)

Arguments

DataTE

Individual biological data table according to MEDITS protocol (TE)

LW

data frame of the length-weight 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

For each individual is calculated the estimated weight according to length-weight relationship coefficient stored in LW table and the difference between observed and estimated individual weight in percentage. Moreover, this function checks if for G1 species has been collected the weight or if has been entered the value ND, that is not allowed.

Value

If for at least one record the difference between observed and estimated individual weight is greater than 20% a warning is given in Logfile.dat and a table named TE_with_estimated_weights.csv is automatically produced in order to allow the user to easily eventually detect the errors. 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"
    DataTE = RoMEBS::TE[1:6,]
    check_individual_weightTE(DataTE, wd=wd, suffix=suffix,verbose=TRUE)
    

[Package RoMEBS version 0.3.0 Index]