Learn R Programming

datacheckr (version 0.2.0.9002)

check_values: Check Values

Description

Checks the class and values of columns in data.

Usage

check_values(data, values = NULL, unique = TRUE, nulls = FALSE,
  data_name = substitute(data))

Arguments

data
The data frame to check.
values
A named list specifying the columns and their associated classes and values.
unique
A string indicating if columns must only be defined in values.
nulls
A string indicating if values can be NULL.
data_name
A string of the name of data.

Value

Throws an informative error or returns an invisible copy of the data.