.checkRequiredColumnsList applies the .checkRequiredColumnsDF function to a list of bugphyzz datasets. If a required column (see .requiredColumns) is missing or is not in the right order in a dataset, .checkRequiredColumnsList prints a message indicating which columns are missing or must be reordered.

.checkRequiredColumnsList(list, table = TRUE)

Arguments

list

A list of bugphyzz datasets.

table

If TRUE (default), it returns a table instead of a list.

Value

Invisibly returns a list of error conditions ("required_columns_missing" or "required_columns_misplaced" subclasses), and it also prints an error message for each error found. If no errors are found, a message indicating that the required columns are present and in the right order is printed. If argument table=TRUE, it returns a data frame instead of a list.

Examples


if (FALSE) {

x <- physiologies()
list_of_errors <- bugphyzz:::.checkRequiredColumnsList(x)
list_of_erros$length

}