removeInvarCol: Remove invariable columns from a data frame or matrix
Description
Columns with one unique value are invariable. The functions help to remove
such columns from a data frame (or matrix) in order to highlight the
variables.
Usage
removeInvarCol(df)
Arguments
df
A data frame or matrix
Value
isVarCol and isInvarCol return a logical vector
indicating the variable and invariable columns respectively.
removeInvarCol removes invariable columns.
Details
removeInvarCol the data frame removing invariable column(s).
isVarCol and isInvarCol are helper functions, returning a
logical vector indicating the variable and invariable columns respectively.