powered by
Creates a cluster tree from numeric features and their correlations.
cluster_variables(x, ...)# S3 method for default cluster_variables(x, clust_method = "complete", cor_method = "spearman", ...)
# S3 method for default cluster_variables(x, clust_method = "complete", cor_method = "spearman", ...)
dataframe with only numeric columns
other parameters
the agglomeration method to be used see hclust methods
hclust
the correlation method to be used see cor methods
cor
an hclust object
# NOT RUN { library("DALEX") dragons_data <- dragons[,c(2,3,4,7,8)] cluster_variables(dragons_data, clust_method = "complete") # }
Run the code above in your browser using DataLab