R/check_functions.R
dot-checkRequiredColumnsList.Rd
.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)
A list of bugphyzz datasets.
If TRUE (default), it returns a table instead of a list.
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.
.requiredColumns
;
.checkRequiredColumns
;
.checkRequiredColumnsDF
;
.checkRequiredColumnsList
Other check functions:
.checkColumnValues()
,
.checkColumnValuesDF()
,
.checkColumnValuesList()
,
.checkRequiredColumns()
,
.checkRequiredColumnsDF()
if (FALSE) {
x <- physiologies()
list_of_errors <- bugphyzz:::.checkRequiredColumnsList(x)
list_of_erros$length
}