const {boot}R Documentation

Test for Constant

Description

Function checks if a numeric vector or matrix is constant to within a specified tolerance.

Usage

const(w, eps=1e-08)

Arguments

w The object to be tested
eps The tolerance required for comparisons.

Details

Subtracts the mean from each element and then checks that all the remainders are within eps of 0.

Value

Logical value

Note

This function was intended for internal use with the functions in the boot package. It may not be sufficient for other uses.

Author(s)

Angelo J. Canty


[Package Contents]