Learn R Programming

BasketballAnalyzeR (version 0.5.0)

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

Description

Reports whether x is a 'variability' object

Usage

is.variability(x)

Arguments

x

an object to test.

Value

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

References

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

See Also

variability

Examples

Run this code
# NOT RUN {
Pbox.BC <- subset(Pbox, Team=="Oklahoma City Thunder" & MIN >= 500,
                    select=c("P2p","P3p","FTp","P2A","P3A","FTA"))
out <- variability(data=Pbox.BC, data.var=c("P2p","P3p","FTp"),
                   size.var=c("P2A","P3A","FTA"), weight=TRUE)
is.variability(out)
# }

Run the code above in your browser using DataLab