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

View source: R/is.shotperformance.R

is.shotperformanceR Documentation

Reports whether x is a 'shotperformance' object

Description

Reports whether x is a 'shotperformance' object

Usage

is.shotperformance(x)

Arguments

x

an object to test.

Value

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

Author(s)

Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)

References

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

See Also

shotperformance

Examples

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)

sndmrc/BasketAnalyzeR documentation built on June 6, 2023, 12:52 a.m.