getrWAR: getrWAR

Description Usage Details Value Examples

Description

Retrieves rWAR from Baseball-Reference.com

Usage

1

Details

Retrieves daily rWAR figures from Baseball-Reference.com and stores it as a data.frame

Value

a data.frame consisting of rWAR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Get data from yesterday
## Not run: 
rWAR = getrWAR()

## End(Not run)
data(rWAR)
hist(rWAR$rWAR)

# Leaders since 1954
library(dplyr)
modern = filter(rWAR, yearId >= 1954)
head(arrange(modern, desc(rWAR)), 20)

# Relationship between batting and fielding
plot(modern$rRAA_bat, modern$rRAA_field, cex=0.5)

beanumber/openWARData documentation built on May 12, 2019, 9:47 a.m.