powered by
Divides correlated features into groups, called aspects. Division is based on correlation cutoff level.
group_variables(x, h, clust_method = "complete", cor_method = "spearman")
hclust object
correlation value for tree cutting
the agglomeration method to be used see hclust methods
hclust
the correlation method to be used see cor methods
cor
list with aspect
# NOT RUN { library("DALEX") dragons_data <- dragons[,c(2,3,4,7,8)] group_variables(dragons_data, h = 0.5, clust_method = "complete") # }
Run the code above in your browser using DataLab