powered by
Divides correlated features into groups, called aspects. Division is based on correlation cutoff level.
group_variables( x, p = 0.5, clust_method = "complete", draw_tree = FALSE, draw_abline = TRUE )
dataframe with only numeric columns
correlation value for cut-off level
the agglomeration method to be used, see hclust methods
hclust
if TRUE, function plots tree that illustrates grouping
if TRUE, function plots vertical line at cut-off level
list of aspects
# NOT RUN { library("DALEX") dragons_data <- dragons[,c(2,3,4,7,8)] group_variables(dragons_data, p = 0.7, clust_method = "complete") # }
Run the code above in your browser using DataLab