getStintStats: Get stats for stints that players were on the floor

Description Usage Arguments Value

View source: R/getStintStats.R

Description

getStintStats parses a play-by-play data frame and returns the statistics while the players were on the court.

Usage

1
getStintStats(pbp, players, format_long = TRUE)

Arguments

pbp

Play-by-play data frame.

players

Character vector with the players on the court.

format_long

Logical scalar indicating how output data frame should be returned (defaults to TRUE).

Value

Data frame with stats on offense and defense when players were on the court. If format_long = TRUE there will be two rows per game: one for offense and one for defense. If format_long = FALSE offense and defense stats for each game will be on the same row.


solmos/euroleaguer documentation built on Jan. 30, 2022, 3:16 p.m.