View source: R/is.shotperformance.R
is.shotperformance | R Documentation |
Reports whether x is a 'shotperformance' object
is.shotperformance(x)
x |
an object to test. |
Returns TRUE if its argument is of class shotperformance
and FALSE otherwise.
Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)
P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications in R. CRC Press.
shotperformance
PbP <- PbPmanipulation(PbP.BDB)
PbP <- scoredifference(PbP_data = PbP, team_name = "GSW", player_data=Pbox, team_data = Tadd)
PbP <- shotclock(PbP_data = PbP, sec_14_after_oreb = FALSE, team_data = Tadd)
shotperf <- shotperformance(PbP_data = PbP, player_data = Pbox, team_data = Tadd,
shotclock_interval = c(0, 2) , shot_type = "2P" )
is.shotperformance(shotperf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.