Learn R Programming

MEDITS (version 0.1.7)

check.format: Check of TA (table A, hauls data), TB (table B, catches data), and TC (table C, biological data) tables' fields format

Description

The function checks whether TA (table A, hauls data), TB (table B, catches data), and TC (table C, biological data) tables have the currect fields. Missing columns or not expected fields could generate errors in the merging functions. check.format helps to identify the presence of unexpected or missing columns generating warnings.

Usage

check.format(TA, TB, TC)

Arguments

TA

data frame of hauls data (TA, table A)

TB

data frame of the catches data (TB, table B)

TC

data frame of the biological data (TC, table C)

Value

The function returns messages of the inconsistences detected in the names and in the order of the columns of the TA (table A, hauls data), TB (table B, catches data) and TC (table C, biological data) tables. In case no message is generated by the function the format of the data frames is assumed to be currect.

Examples

Run this code
# NOT RUN {
check.format(TA, TB, TC)
# }

Run the code above in your browser using DataLab