Skip to content

briceshun/PGA-Tour-Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Web-Scaping PGA Tour Statistics using R

Short web-scraping code to collect PGA Tour statistics from https://www.pgatour.com/stats.html

The code requires the year and an optional stat id as list inputs.
It consists of 2 parts:

  1. HTML Links Builder:
    This part consists of building the html strings used in the next step.
    It also retrieves a list of stat id which can be used for selection.
  2. Web Scaping Loop:
    This is where the web-scraping magic happens!
    It loops through all the pages and spits out the data in a long format.

About

R code used to webscrape the PGA Tour statistics

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages