vec_assert

0th

Percentile

Assert an argument has known prototype and/or size

Assert an argument has known prototype and/or size

Usage
vec_assert(x, ptype = NULL, size = NULL)
Arguments
x

A vector argument to check.

ptype

Prototype to compare against.

size

Size to compare against

Value

Either an error, or x, invisibly.

Aliases
  • vec_assert
Documentation reproduced from package vctrs, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.