beanumber / openWAR

An R package enabling the computation of openWAR using MLBAM data
99 stars 33 forks source link

2016 data returns error when running makeWAR. #116

Closed gjm112 closed 6 years ago

gjm112 commented 6 years ago

Example: library(openWAR) load("~/Dropbox/openWARData/data/MLBAM2016.rda") openWARplays2016 <- makeWAR(MLBAM2016)

Error in filter_impl(.data, quo) : Evaluation error: object 'isBIP' not found.

This only happens for 2016. All other years work.

beanumber commented 6 years ago

Confirmed. Not sure if this is the problem, but it's a problem.

beanumber commented 6 years ago

This is the problem:

> class(MLBAM2015)
[1] "GameDayPlays" "data.frame"  
> class(MLBAM2016)
[1] "GameDayPlays" "data.frame"  
> class(MLBAM2017)
[1] "GameDayPlays" "tbl_df"       "tbl"          "data.frame"  

It doesn't work for 2015 either. The older data sets should be upgraded to be tbl_dfs