meets_errs: Checks for Meta-Errors in Count and/or Value-Restriction...

View source: R/meets_errs.R

meets_errsR Documentation

Checks for Meta-Errors in Count and/or Value-Restriction Arguments, If There Are Any

Description

Checks whether any count- or value-restrictions are carried in ... arguments. If so, evaluates whether those restriction arguments are valid. If not, throws errors describing invalid restriction arguments.

Usage

meets_errs(x, ...)

Arguments

x

An object.

...

Arguments passed on to meets

Value

No return value. Called for the side effect of evaluating the validity of any count- or value-restriction arguments in ....

Specifying count and value restrictions

Specifying restrictions in ... is optional. The full set of recognized arguments names are defined in the following table along with the properties each specifies:

  ⁠.max, .maxr, .maxc⁠   Scalar maximum valid numbers of elements, rows, and columns, respectively.
   
  ⁠.min, .minr, .minc⁠ Scalar minimum valid numbers of elements, rows, and columns, respectively.
   
  ⁠.lt, .le, .ge, .gt⁠ Complete sortable scalar less-than, less-than-or-equal, greater-than-or-equal, and greater-than bounds, respectively.
   
  ⁠.n, .nr, .nc⁠ A vector of valid numbers of elements, rows, and columns, respectively.
   
  .vals A vector of valid values.

See Also

Other utils: check_valid(), combo2props(), spec2combos(), spec2props(), stack2funs()


j-martineau/uj documentation built on Sept. 14, 2024, 4:40 a.m.