Learn R Programming

posterior (version 1.7.0)

is_constant: Check if vector is constant

Description

check if a vector is constant, up to a defined tolerance.

Usage

is_constant(x, tol = .Machine$double.eps)

Arguments

x

(vector) vector to check if is constant

tol

(numeric) tolerance to consider two values equal. Default is .Machine$double.eps.