Learn R Programming

BasketballAnalyzeR (version 0.5.0)

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

Description

Reports whether x is a 'simplereg' object

Usage

is.simplereg(x)

Arguments

x

an object to test.

Value

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

References

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

See Also

simplereg

Examples

Run this code
# NOT RUN {
Pbox.sel <- subset(Pbox, MIN >= 500)
X <- Pbox.sel$AST/Pbox.sel$MIN
Y <- Pbox.sel$TOV/Pbox.sel$MIN
Pl <- Pbox.sel$Player
out <- simplereg(x=X, y=Y, type="lin")
is.simplereg(out)
# }

Run the code above in your browser using DataLab