chk_length_equals: Check that 'x1' has length specified by 'x2'

Description Usage Arguments See Also Examples

View source: R/chk-composite.R

Description

Check that 'x1' has length specified by 'x2'

Usage

1
2
3
chk_length_equals(x1, x2, name1, name2)

err_length_equals(x1, x2, name1, name2)

Arguments

x1

An object.

x2

A positive integer.

name1

The name for x1 that will be used in error messages.

name2

The name for x2 that will be used in error messages.

See Also

chk_length_same_or_1, chk_length_same

Examples

1
2
3
4
chk_length_equals(x1 = c(1L, 3L, 2L),
                  x2 = 3L,
                  name1 = "x1",
                  name2 = "x2")

johnrbryant/demcheck documentation built on Dec. 31, 2021, 11:57 a.m.