.checkColumnValuesDF applies the .checkColumnValues function to all of the columns of a single dataset. It's a tryCatch wrapper of .checkColumnValues.

.checkColumnValuesDF(dat, dat_name = NULL)

Arguments

dat

A data frame.

dat_name

Character string indicating the name of the dataset. Default is NULL.

Value

Invisibly returns a list of error conditions (subclass "invalid_column_values"), and it also prints an error message if a column contains invalid values. If no errors are found, it returns NULL and a message indicating it.

Examples


if (FALSE) {

x <- physiologies("aerophilicity")[[1]]
err <- bugphyzz:::.checkColumnValuesDF(x)

}