contains_constant {simdata} | R Documentation |
Check if matrix contains constant column(s)
contains_constant(x, eps = .Machine$double.eps)
x |
Matrix or Data.frame. |
eps |
Threshold for standard deviation below which a column is considered to be constant. |
TRUE if one of the columns has standard deviation of below 'eps“, else FALSE.
Prints a warning if constant is found.