check_no_empty_fields {RoME}R Documentation

Check empty fields in TA, TB, TC, TE and TL

Description

All the fields, except to HYDROLOGICAL_STATION and OBSERVATIONS, must be not empty for valid hauls

Usage

check_no_empty_fields(Data, year, wd, suffix)

Arguments

Data

one of the different data tables defined by the MEDITS protocol (TX)

year

reference year for the analysis

wd

working directory path defined by the user

suffix

Suffix string of the Logfile

Details

The routine uses all the table format (TX) defined by the MEDITS protocol.

Value

The function returns TRUE if no error occurs, while FALSE is returned when there is one or more empty record in the given TX table.

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"
    Data = RoME::TA
    year=2007
    check_no_empty_fields(Data, year, wd, suffix)

[Package RoME version 0.1.23 Index]