R/reorder_cormat.R

Defines functions reorder_cormat

Documented in reorder_cormat

#' A function to print similarity across ML predictions.

reorder_cormat <- function(cormat){
  # Use correlation between variables as distance
  dd <- as.dist((1-cormat)/2)
  hc <- hclust(dd)
  cormat <-cormat[hc$order, hc$order]
}
kforthman/caretStack documentation built on June 21, 2021, 8:38 a.m.