remove_constant function

Remove constant columns from a data.frame or matrix.