is.hclustering: Reports whether x is a 'hclustering' object

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

View source: R/is.hclustering.R

Description

Reports whether x is a 'hclustering' object

Usage

1

Arguments

x

an object to test.

Value

Returns TRUE if its argument is of class hclustering and FALSE otherwise.

Author(s)

Marco Sandri, Paola Zuccolotto, Marica Manisera (basketball.analyzer.help@gmail.com)

References

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

See Also

hclustering

Examples

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

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