is_varying: Check if the values in a vector vary

Description Usage Arguments

View source: R/assertions.R

Description

Check if the values in a vector vary

Usage

1
is_varying(x, msg = "Vector does not vary.", fail = TRUE)

Arguments

x

a vector

msg

character string with the error message to return if fail = TRUE.

fail

logical whether to return an error if x does not vary.


Zelig documentation built on Jan. 8, 2021, 2:26 a.m.