check_weight_tot_nb {RoMEBS}R Documentation

Function to check if, when the weight is not null, also the number is not null.

Description

If total weight is different from 0, total number must be different from 0 (only if the category of the species is different from "E") and vice versa (for all faunistic categories).

Usage

check_weight_tot_nb(ResultDataTB,wd,suffix)

Arguments

ResultDataTB

Catch data table according to MEDITS protocol (TB)

wd

working directory path defined by the user

suffix

Suffix string of the Logfile

Details

In this check RoMEBS verifies if for the records with total weight not null, there is a total number not null, except for categories V, G, H, D and E, as reported in MEDITS manual.

Value

The function returns always TRUE, because the outcome of the function is a warning that does not lock the execution of the RoMEBS checks.

Author(s)

I. Bitetto, W. Zupa

References

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

Examples

library(MEDITS)
library(RoMEBS)
wd=tempdir()
suffix= "2020-03-05_time_h17m44s55"
check_weight_tot_nb(TB,wd,suffix)

[Package RoMEBS version 0.3.0 Index]