Skip to contents

Load cleaned mlv events log data from the volleydata repository.

Usage

load_mlv_events_log(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 events log data for the specified seasons.

Column NameType
match_idint
seasonint
match_datetimestring
setint
set_start_timestring
set_end_timestring
set_durationint
set_final_home_scoreint
set_final_away_scoreint
event_typestring
event_timestring
libero_entersbool
team_involvedstring
libero_jersey_numberint
libero_substitute_jersey_numberint
rally_start_timestring
rally_end_timestring
rally_point_winnerstring
substitute_in_jersey_numberint
substitute_out_jersey_numberint
challenge_approvedstring
challenge_reasonstring
challenge_methodstring
challenge_responsestring
challenge_at_home_scorefloat
challenge_at_away_scorefloat
challenge_score_changestring
serving_teamstring
current_home_scorefloat
current_away_scorefloat
home_team_p1float
home_team_p2float
home_team_p3float
home_team_p4float
home_team_p5float
home_team_p6float
away_team_p1float
away_team_p2float
away_team_p3float
away_team_p4float
away_team_p5float
away_team_p6float
verified_timestring
verified_methodstring
sanction_typestring
sanction_remarkfloat
sanction_staff_rolestring
staff_first_namestring
staff_last_namestring
staff_typestring
is_exceptionalstring

Examples

try({load_mlv_events_log(2024)})
#> Warning: One or more parsing issues, call `problems()` on your data frame for details,
#> e.g.:
#>   dat <- vroom(...)
#>   problems(dat)
#> Rows: 25558 Columns: 51
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr   (7): event_type, team_involved, rally_point_winner, challenge_reason, ...
#> dbl  (12): match_id, season, set, set_duration, set_final_home_score, set_fi...
#> lgl  (26): libero_enters, challenge_approved, serving_team, current_home_sco...
#> dttm  (6): match_datetime, set_start_time, set_end_time, event_time, rally_s...
#> 
#>  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: 25,558 × 51
#>    match_id season match_datetime        set set_start_time     
#>       <dbl>  <dbl> <dttm>              <dbl> <dttm>             
#>  1  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#>  2  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#>  3  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#>  4  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#>  5  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#>  6  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#>  7  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#>  8  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#>  9  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#> 10  2125267   2024 2024-01-25 01:00:00     1 2024-01-25 01:00:00
#> # ℹ 25,548 more rows
#> # ℹ 46 more variables: set_end_time <dttm>, set_duration <dbl>,
#> #   set_final_home_score <dbl>, set_final_away_score <dbl>, event_type <chr>,
#> #   event_time <dttm>, libero_enters <lgl>, team_involved <chr>,
#> #   libero_jersey_number <dbl>, libero_substitute_jersey_number <dbl>,
#> #   rally_start_time <dttm>, rally_end_time <dttm>, rally_point_winner <chr>,
#> #   substitute_in_jersey_number <dbl>, substitute_out_jersey_number <dbl>, …