Player's Salary Data Collected Through R Scraping

Player's Salary Stats from the 2011 Draft Class First Round were collected from capfriendly.com which is shown in the links below.

Steps Taken

Step 1: Choosing a Website

After looking online, capfriendly.com was chosen due to its easily accessible NHL salary data.

Step 2: Writing Code

A list of names were created and then used to create a for loop. The for loop, ran through each name and plugged it into the url. It then took the salary data from the html and placed it into a data frame.

Step 3: Converting to CSV

The data frame created from the for loop was converted to a csv and exported.