View source: R/correlation_finder.R
correlation_finder | R Documentation |
The function finds out which variables have strong correlations according to a correlation threshold. The output returns a list of variables names that can summarize the information and removes redundant variables.
correlation_finder(cor_mat, threshold, verbose = TRUE)
cor_mat |
A correlation matrix. |
threshold |
Threshold value from which it is considered that the correlation is high. |
verbose |
Verbose output. |
Returns a vector with variable names that can summarize the information.
## Not run:
environ_data <- read.csv(system.file("extdata",
"nichekmeansCluster.csv",
package = "ntbox"))[,-(1:3)]
environ_cors <- cor(environ_data)
correlation_finder(cor_mat = environ_cors ,threshold = 0.7,verbose = FALSE)
correlation_finder(cor_mat = environ_cors ,threshold = 0.7,verbose = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.