check_values: Check Values

Description Usage Arguments Value

View source: R/check-values.R

Description

Checks the class and values of columns in data.

Usage

1
2
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.


datacheckr documentation built on May 30, 2017, 6:05 a.m.