Description Usage Arguments Details Value Author(s) Examples
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.
1 |
df |
A data frame or matrix |
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.
isVarCol
and isInvarCol
return a logical vector
indicating the variable and invariable columns respectively.
removeInvarCol
removes invariable columns.
Jitao David Zhang <jitao_david.zhang@roche.com>
1 2 3 4 | testDf <- data.frame(a=1:4, b=7, c=LETTERS[1:4])
isVarCol(testDf)
isInvarCol(testDf)
removeInvarCol(testDf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.