check_nbtotTB {RoMEBS}R Documentation

Check total number of individuals in TB

Description

The function checks that the total number of individuals is consistent with the sum of the individuals per sex

Usage

check_nbtotTB(DataTB, wd, suffix)

Arguments

DataTB

Catch data table according to MEDITS protocol (TB)

wd

working directory path defined by the user

suffix

Suffix string of the Logfile

Details

The function checks that the total number of individuals is consistent with the sum of the individuals per sex

Value

The function returns TRUE if no error occurs, FALSE if one or more inconsistences in the individuals number 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 = MEDITS::TB
    check_nbtotTB(DataTB, wd, suffix)

[Package RoMEBS version 0.3.0 Index]