corr_rm | R Documentation |
Remove highly correlated variables from a data.frame using the
corrp functions outputs and the caret package function findCorrelation
.
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 (TODO). |
col |
\[ |
isig |
\[ |
cutoff |
\[ |
Igor D.S. Siciliani
## Not run:
air_cor = corrp(airquality)
corr_rm(df=airquality,c=air_cor,cutoff=0.75,col = 'infer.value',isig = F)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.