Learn R Programming

BasketballAnalyzeR (version 0.5.0)

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

Description

Reports whether x is a 'kclustering' object

Usage

is.kclustering(x)

Arguments

x

an object to test.

Value

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

References

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

See Also

kclustering

Examples

Run this code
# NOT RUN {
FF <- fourfactors(Tbox,Obox)
X <- with(FF, data.frame(OD.Rtg=ORtg/DRtg,
               F1.r=F1.Def/F1.Off, F2.r=F2.Off/F2.Def,
               F3.O=F3.Def, F3.D=F3.Off))
X$P3M <- Tbox$P3M
X$STL.r <- Tbox$STL/Obox$STL
kclu <- kclustering(X)
is.kclustering(kclu)
# }

Run the code above in your browser using DataLab