Skip to contents

Check if matrix contains constant column(s)

Usage

contains_constant(x, eps = .Machine$double.eps)

Arguments

x

Matrix or Data.frame.

eps

Threshold for standard deviation below which a column is considered to be constant.

Value

TRUE if one of the columns has standard deviation of below `eps``, else FALSE.

Note

Prints a warning if constant is found.