Description Usage Details Value Examples
Retrieves rWAR from Baseball-Reference.com
1 | getrWAR()
|
Retrieves daily rWAR figures from Baseball-Reference.com and stores it as a data.frame
a data.frame consisting of rWAR
1 2 3 4 5 6 7 8 9 10 | # Get data from yesterday
ds = getrWAR()
mosaic::densityplot(~WAR, data=ds, plot.points=FALSE)
# Leaders since 1954
modern = subset(ds, yearId >= 1954)
head(modern[order(modern$WAR, decreasing=TRUE),], 20)
# Relationship between batting and fielding
xyplot(RAA_field ~ RAA_bat, data=modern, type=c('p', 'r', 'smooth'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.