corr_rm | R Documentation |
Remove highly correlated variables from a data frame using the
correlation functions' outputs and the findCorrelation
function from the caret package.
corr_rm(df, c, ...)
## S3 method for class 'clist'
corr_rm(
df,
c,
col = c("infer.value", "stat.value"),
isig = TRUE,
cutoff = 0.75,
...
)
## S3 method for class 'list'
corr_rm(
df,
c,
col = c("infer.value", "stat.value"),
isig = TRUE,
cutoff = 0.75,
...
)
## S3 method for class 'cmatrix'
corr_rm(df, c, cutoff = 0.75, ...)
## S3 method for class 'matrix'
corr_rm(df, c, cutoff = 0.75, ...)
df |
[ |
c |
[ |
... |
Additional arguments. |
col |
[ |
isig |
[ |
cutoff |
[ |
Igor D.S. Siciliani, Paulo H. dos Santos
iris_clist <- corrp(iris)
iris_cmatrix <- corr_matrix(iris_clist)
corr_rm(df = iris, c = iris_clist, cutoff = 0.75, col = "infer.value", isig = FALSE)
corr_rm(df = iris, c = iris_cmatrix, cutoff = 0.75, col = "infer.value", isig = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.