Skip to contents

Load cleaned mlv points log data form the volleydata repository.

Usage

load_mlv_pbp(seasons = NULL)

Arguments

seasons

An integer or vector of integers of seasons to fetch data for. Defaults to all available seasons.

Value

A data frame containing the play-by-play data for the specified seasons.

Column NameType
match_idint
seasonint
match_datetimestring
home_team_namestring
away_team_namestring
team_involvedstring
jersey_numberint
actionstring
outcomestring
setint
point_numberint
point_winnerstring
home_scoreint
away_scoreint

Examples

try({load_mlv_pbp(2024)})
#> Rows: 107849 Columns: 14
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr  (6): home_team_name, away_team_name, team_involved, action, outcome, po...
#> dbl  (7): match_id, season, jersey_number, set, point_number, home_score, aw...
#> dttm (1): match_datetime
#> 
#>  Use `spec()` to retrieve the full column specification for this data.
#>  Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> # A tibble: 107,849 × 14
#>    match_id season match_datetime      home_team_name   away_team_name
#>       <dbl>  <dbl> <dttm>              <chr>            <chr>         
#>  1  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#>  2  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#>  3  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#>  4  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#>  5  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#>  6  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#>  7  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#>  8  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#>  9  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#> 10  2125267   2024 2024-01-25 01:00:00 Omaha Supernovas Atlanta Vibe  
#> # ℹ 107,839 more rows
#> # ℹ 9 more variables: team_involved <chr>, jersey_number <dbl>, action <chr>,
#> #   outcome <chr>, set <dbl>, point_number <dbl>, point_winner <chr>,
#> #   home_score <dbl>, away_score <dbl>