cluster_variables: Creates a cluster tree from numeric features

Description Usage Arguments Value Examples

View source: R/group_variables.R

Description

Creates a cluster tree from numeric features and their correlations.

Usage

1
2
3
4
cluster_variables(x, ...)

## Default S3 method:
cluster_variables(x, clust_method = "complete", cor_method = "spearman", ...)

Arguments

x

dataframe with only numeric columns

...

other parameters

clust_method

the agglomeration method to be used see hclust methods

cor_method

the correlation method to be used see cor methods

Value

an hclust object

Examples

1
2
3
library("DALEX")
dragons_data <- dragons[,c(2,3,4,7,8)]
cluster_variables(dragons_data, clust_method = "complete")

triplot documentation built on July 13, 2020, 5:08 p.m.