chk_multiple_of: Check that 'x1' is a multiple of 'x2'

Description Usage Arguments See Also Examples

View source: R/chk-composite.R

Description

If null_ok is TRUE and x1 is NULL then the test succeeds.

Usage

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

err_multiple_of(x1, x2, name1, name2)

Arguments

x1

A scalar.

x2

A scalar.

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_multiple_of_n

Examples

1
2
3
4
5
6
x1 <- 10L
x2 <- 2L
chk_multiple_of(x1 = x1,
                x2 = x2,
                name1 = "x1",
                name2 = "x2")

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