Learn R Programming

BasketballAnalyzeR (version 0.5.0)

is.hclustering: 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.

References

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

See Also

hclustering

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab