Description Usage Arguments Details Value
View source: R/remove_zerovar.R
remove_zerovar
is a wrapper for caret::nearZeroVar
and indexing the data
frame to remove the resulting predictors.
1 | remove_zerovar(df, ignore_col = NA, quiet = T, ...)
|
df |
The data frame to be processed. |
ignore_col |
Columns that will not be preprocessed, given as a character
vector. This will likely constitute the response variable. The default is
|
quiet |
Whether to suppress the message for how many predictors are
removed in preprocessing. The default is |
... |
Additional arguments to be passed to |
Because the data frame to be passed to the function will likely include
columns that do not need to be transformed (like columns for identification)
or response variables, there is an option to ignore these columns using
ignore_col
. The input to ignore_col
should be a character vector.
A data frame with columns centered and scaled and with variables with near-zero variance removed. Columns can be ignored and not be preprocessed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.