check_nm_TB {RoME}R Documentation

Check of consistency in number per sex set "not mandatory" in TB

Description

Check if in TB there are the total number, number of females, males and undetermined for species G1

Usage

check_nm_TB(DataTB, year, wd, suffix)

Arguments

DataTB

Catch data table according to MEDITS protocol (TB)

year

reference year for the analysis

wd

working directory path defined by the user

suffix

Suffix string of the Logfile

Details

for the species G1 are not allowed that the fields related to total number, number of females, number of males and number of undetermined are simultaneously null, according to MEDITS manual version 9 of 2017.

Value

The function returns TRUE if no error occurs, FALSE if one or more inconsistences in the individuals number per sex in TB is detected.

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"
    DataTB = RoME::TB
    year=2007
    check_nm_TB(DataTB, year, wd, suffix)

[Package RoME version 0.1.22 Index]