inst/doc/wRAA_wRC.R

## ---- eval=FALSE---------------------------------------------------------
#  library(baseballDBR)
#  # Load data from Baseball Databank
#  get_bbdb(table = c("Batting", "Pitching", "Fielding"))
#  
#  Batting$wRAA <- wRAA(Batting, Pitching, Fielding, Fangraphs=FALSE, NA_to_zero=TRUE, Sep.Leagues=FALSE)

## ---- eval=FALSE---------------------------------------------------------
#  library(baseballDBR)
#  # Load data from Baseball Databank
#  get_bbdb(table = c("Batting", "Pitching", "Fielding"))
#  
#  Batting$wRC <- wRC(Batting, Pitching, Fielding, Fangraphs=FALSE, NA_to_zero=TRUE, Sep.Leagues=FALSE)

Try the baseballDBR package in your browser

Any scripts or data that you put into this service are public.

baseballDBR documentation built on May 2, 2019, 5:56 a.m.