chk_length_same: Check that 'x1' and 'x2' have same length

Description Usage Arguments See Also Examples

View source: R/chk-composite.R

Description

Check that 'x1' and 'x2' have same length

Usage

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

err_length_same(x1, x2, name1, name2)

Arguments

x1

An object.

x2

An object.

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_equals, chk_length_same_or_1

Examples

1
2
3
4
x1 <- 1:5
x2 <- 2:6
chk_length_same(x1 = x1, x2 = x2,
                name1 = "x1", name2 = "x2")

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