hc_explore: hc_explore function

View source: R/cluster.R

hc_exploreR Documentation

hc_explore function

Description

massive function for exploratory hierachical cluster analysis. computes hierarchical, kmeans, and hierarchical with kmeans relocation cluster analyses, adds them to the working dataset and returns other working information

Usage

hc_explore(
  data,
  cvars,
  mes = "rawdata",
  metric = "euclidean",
  method = "ward",
  diss = FALSE,
  maxclust = 15,
  bindata = FALSE
)

Arguments

data

a dataframe containing only the identifier and raw data to be clustered

cvars

vector of names in order for all variables to be used in the clustering

mes

vector of distance measures to use. default is distance measures from

metric

metric to use in the agnes cluster analysis. default is 'euclidean'

method

method of hierarchical clustering to use. default is 'ward'

diss

whether dissimilarity matrix is being passed (TRUE) or raw data (FALSE). default is FALSE

maxclust

maximum cluster solutions to produce. default is 15

bindata

is the data being analyzed binary data (TRUE) or not (FALSE). default is FASLE

Examples

hc_explore_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.