Learn R Programming

BAwiR (version 1.4)

do_preproc_period: Data preprocessing for periods

Description

Preprocess the data that will be needed for computing statistics per period.

Usage

do_preproc_period(data, team_sel, period_sel, data_sl)

Arguments

data

Prepared data from a given game.

team_sel

One of the teams' names involved in the game.

period_sel

Period of interest. Options can be "xC", where x=1,2,3,4.

data_sl

Data with the starting lineups.

Author

Guillermo Vinue

Examples

Run this code
team_sel <- "Valencia Basket"
period_sel <- "1C"

pre_per <- do_preproc_period(acb_vbc_cz_pbp_2223, team_sel, period_sel, acb_vbc_cz_sl_2223)

df2 <- pre_per$df2
df0_inli_team <- pre_per$df0_inli_team

Run the code above in your browser using DataLab