is.hclustering {BasketballAnalyzeR} | R Documentation |
Reports whether x is a 'hclustering' object
Description
Reports whether x is a 'hclustering' object
Usage
is.hclustering(x)
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
Examples
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)
[Package BasketballAnalyzeR version 0.5.0 Index]