chk_multiple_of_n: Check that 'x1' is a multiple of 'n'

Description Usage Arguments Examples

View source: R/chk-composite.R

Description

chk_multiple_of_n differs from chk_multiple_of only in the error message. chk_multiple_of_n refers to the value of n, rather than to the variable "n".

Usage

1
2
3

Arguments

x

A scalar.

name

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

n

A scalar.

Examples

1
2
3
x <- 10L
n <- 2L
chk_multiple_of_n(x = x, n = n, name = "x")

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