Skip to contents

Equipment changes found by comparing each player's bags in date order (see [load_witb()]): one row per change of head, shaft or grip in a slot. Only players with a PGA Tour ID are included.

Usage

load_witb_switches(player = NULL, slot = NULL)

Arguments

player

Optional player name filter (partial match, case-insensitive).

slot

Optional slot filter, as in [load_witb()].

Value

A tibble with player_id, player_name, slot, component, old_value, new_value, last_seen_old, first_seen_new, first_seen_event, tournament_id, old_bag_id, new_bag_id, gap_days, uncertain, reason and brand_change. See [pga_field_descriptions()] with "witb_switches".

Examples

# \donttest{
load_witb_switches("McIlroy", slot = "driver")
#> # A tibble: 29 × 16
#>    player_id player_name  slot   component old_value     new_value last_seen_old
#>    <chr>     <chr>        <chr>  <chr>     <chr>         <chr>     <date>       
#>  1 28237     Rory McIlroy driver grip      Tour Velvet … MCC       2021-04-08   
#>  2 28237     Rory McIlroy driver head      C•2 SureFit … Covert T… 2012-08-13   
#>  3 28237     Rory McIlroy driver head      Covert Tour … Vapor Pro 2013-12-01   
#>  4 28237     Rory McIlroy driver head      Vapor Pro     Vapor Fl… 2014-11-16   
#>  5 28237     Rory McIlroy driver head      Vapor Fly Pro GBB Epic… 2016-02-16   
#>  6 28237     Rory McIlroy driver head      GBB Epic Sub… 2017 M2   2016-10-28   
#>  7 28237     Rory McIlroy driver head      2017 M2       M3        2017-05-09   
#>  8 28237     Rory McIlroy driver head      M3            M3 460    2018-02-06   
#>  9 28237     Rory McIlroy driver head      M3 460        M5        2018-03-18   
#> 10 28237     Rory McIlroy driver head      M5            SIM       2019-11-01   
#> # ℹ 19 more rows
#> # ℹ 9 more variables: first_seen_new <date>, first_seen_event <chr>,
#> #   tournament_id <chr>, old_bag_id <chr>, new_bag_id <chr>, gap_days <int>,
#> #   uncertain <lgl>, reason <chr>, brand_change <lgl>
# }