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


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