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
3
4
5
6
7
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.


poissonconsulting/deckr documentation built on March 18, 2021, 10:37 a.m.