forked from leerichardson/game_simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
obtained the new 2013 RAPM numbers for 2014 projections
- Loading branch information
1 parent
0dd6c5a
commit 49b98aa
Showing
8 changed files
with
1,031 additions
and
529 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Set working directory | ||
setwd("C:/Users/Lee/game_simulation/data/stats_nba_appspot") | ||
|
||
## Load the XML Library | ||
library(XML) | ||
|
||
## Set the url | ||
url <- "http://stats-for-the-nba.appspot.com/ratings/2014.html" | ||
rpm_2013 <- readHTMLTable(url[1])[[1]] | ||
|
||
## Save the data | ||
write.csv(rpm_2013, "data_2013.csv") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters