check_vector: Check Vector

Description Usage Arguments Value

View source: R/check-vector.R

Description

Checks the class and values of a vector

Usage

1
2
check_vector(vector, value, min_length = 1, max_length = max_nrow(),
  vector_name = substitute(vector))

Arguments

vector

The vector to check.

value

A vector specifying the class and values.

min_length

A count of the minimum length.

max_length

A count of the maximum length.

vector_name

A string of the name of vector.

Value

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


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