contains_constant {simdata}R Documentation

Check if matrix contains constant column(s)

Description

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.


[Package simdata version 0.4.0 Index]