is_varying: Check if the values in a vector vary

View source: R/assertions.R

is_varyingR Documentation

Check if the values in a vector vary

Description

Check if the values in a vector vary

Usage

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.


IQSS/Zelig documentation built on Dec. 11, 2023, 1:51 a.m.