check_stratum {RoMEBS}R Documentation

Function that checks the consistency between start and end depth according to the stratum.

Description

Start depth and end depth of each haul should be in the same stratum.

Usage

check_stratum(ResultData,wd,suffix,Stratification=RoMEBS::Stratification)

Arguments

ResultData

Haul data table according to MEDITS protocol (TA).

wd

Working directory selected by the user.

suffix

Suffix string of the Logfile.

Stratification

Stratification scheme

Details

Start depth and end depth of each haul should be in the same stratum. The strata are either the ones defined according to the MEDITS protocol: 10-15 m; 50-100 m; 100-200 m; 200-500m; 500-800 m or the ones defined by the given survey, in accordance with data reported in Stratification table. For the format refer to the Stratification table included in the library.

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. The presence of inconsistencies in the data is reported in the logfile stored in the "Logfiles" subdirectory of the "wd" user-defined directory.

Author(s)

I. Bitetto, W. Zupa

References

For the definition of the strata, please refer to: 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_stratum(TA,wd,suffix,Stratification=RoMEBS::Stratification)

[Package RoMEBS version 0.3.0 Index]