Deprecated. Use [load_holes()] instead, which serves full-field scorecards for completed tournaments from pre-built hosted files.
Arguments
- years
Numeric vector. Year(s) to load.
- tournaments
Character vector. Optional tournament event IDs or names. If NULL, loads all tournaments.
- top_n
Numeric. Number of top finishers to include scorecards for. Default is 10. Set to NULL for all players.
- tour
Character. Tour type, default "pga".
- dir
Character. Optional directory to save CSV files.
Examples
# \donttest{
load_pga_hbh(2025, "Masters Tournament", top_n = 3)
#> Warning: `load_pga_hbh()` was deprecated in golfastr 0.2.0.
#> ℹ Please use `load_holes()` instead.
#> # A tibble: 218 × 7
#> round hole par score score_type year tournament_name
#> <int> <int> <int> <int> <chr> <dbl> <chr>
#> 1 1 1 4 4 PAR 2025 Masters Tournament
#> 2 1 2 5 5 PAR 2025 Masters Tournament
#> 3 1 3 4 3 BIRDIE 2025 Masters Tournament
#> 4 1 4 3 3 PAR 2025 Masters Tournament
#> 5 1 5 4 4 PAR 2025 Masters Tournament
#> 6 1 6 3 3 PAR 2025 Masters Tournament
#> 7 1 7 4 4 PAR 2025 Masters Tournament
#> 8 1 8 5 4 BIRDIE 2025 Masters Tournament
#> 9 1 9 4 3 BIRDIE 2025 Masters Tournament
#> 10 1 10 4 4 PAR 2025 Masters Tournament
#> # ℹ 208 more rows
# }
