Learn R Programming

Zelig (version 5.1.7)

is_varying: 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.