Skip to contents

Load cleaned officials data from the volleydata repository.

Usage

load_officials(league = NULL, seasons = NULL)

Arguments

league

A string specifying which of "mlv", "lovb", or "au" to load data for.

seasons

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

Value

Column NameType
match_idint
seasonint
match_datetimechr
officials_typechr
full_namechr
first_namechr
last_namechr
levelchr
leaguechr

Examples

try({load_officials("mlv", 2024)})
#> # A tibble: 375 × 9
#>    match_id season match_datetime      officials_type full_name       first_name
#>       <dbl>  <dbl> <dttm>              <chr>          <chr>           <chr>     
#>  1  2125268   2024 2024-01-26 00:00:00 referee1       Michelle Prater Michelle  
#>  2  2125268   2024 2024-01-26 00:00:00 referee2       Devonie McLarty Devonie   
#>  3  2125268   2024 2024-01-26 00:00:00 scorer1        Henry Yun Ping… Henry Yun…
#>  4  2125268   2024 2024-01-26 00:00:00 scorer2        Jeff TerMolen   Jeff      
#>  5  2125270   2024 2024-02-02 00:00:00 referee1       Michelle Prater Michelle  
#>  6  2125270   2024 2024-02-02 00:00:00 referee2       Suzanne Lowery  Suzanne   
#>  7  2125270   2024 2024-02-02 00:00:00 scorer1        April  Carroll  April     
#>  8  2125270   2024 2024-02-02 00:00:00 scorer2        Alaina Smith W… Alaina    
#>  9  2125271   2024 2024-02-04 00:00:00 referee1       Michelle Prater Michelle  
#> 10  2125271   2024 2024-02-04 00:00:00 referee2       William Stanley William   
#> # ℹ 365 more rows
#> # ℹ 3 more variables: last_name <chr>, level <chr>, league <chr>