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)
Value
isVarCol and isInvarCol return a logical vector
indicating the variable and invariable columns respectively.
removeInvarCol removes invariable columns.
Arguments
df
A data frame or matrix
Author
Jitao David Zhang <jitao_david.zhang@roche.com>
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.