hclustering: Agglomerative hierarchical clustering

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/hclustering.R

Description

Agglomerative hierarchical clustering

Usage

1
hclustering(data, k = NULL, nclumax = 10, labels = NULL, linkage = "ward.D")

Arguments

data

numeric data frame.

k

integer, number of clusters.

nclumax

integer, maximum number of clusters (when k=NULL).

labels

character, row labels.

linkage

character, the agglomeration method to be used in hclust (see method in hclust).

Details

The hclustering function performs a preliminary standardization of columns in data.

Value

A hclustering object.

If k is NULL, the hclustering object is a list of 3 elements:

If k is not NULL, the hclustering object is a list of 5 elements:

Author(s)

Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)

References

P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications in R. CRC Press.

See Also

plot.hclustering, hclust

Examples

1
2
3
4
5
6
7
data <- with(Pbox, data.frame(PTS, P3M, REB=OREB+DREB, AST, TOV, STL, BLK, PF))
data <- subset(data, Pbox$MIN >= 1500)
ID <- Pbox$Player[Pbox$MIN >= 1500]
hclu1 <- hclustering(data)
plot(hclu1)
hclu2 <- hclustering(data, labels=ID, k=7)
plot(hclu2)

BasketballAnalyzeR documentation built on July 2, 2020, 2:14 a.m.