You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the cfbd_pbp_data for any data before 2014, I am getting errors.
When running the following: Input:
tmp <- tibble()
wk <- 3
seas <- "regular"
yr <- 2013
tmp <- cfbd_pbp_data(yr, seas, wk, team = NULL, play_type = NULL, epa_wpa = TRUE), it returns the following error:
Error:
Error in predict.nnet(object, X) : missing values in 'x'
In addition: Warning messages:
1: In log(dat$new_distance[neg_distance]) : NaNs produced
2: In log(dat$new_distance[neg_distance]) : NaNs produced
3: In log(dat$new_distance[neg_distance]) : NaNs produced
4: In log(dat$new_distance[neg_distance]) : NaNs produced
5: In log(dat$new_distance[neg_distance]) : NaNs produced
6: In log(dat$new_distance[neg_distance]) : NaNs produced
Sometimes another error is produced: Input:
tmp <- tibble()
wk <- 1
seas <- "regular"
yr <- 2012
tmp <- cfbd_pbp_data(yr, seas, wk, team = NULL, play_type = NULL, epa_wpa = TRUE)
Error:
Error in predict.nnet(object, X) : missing values in 'x'
In addition: There were 20 warnings (use warnings() to see them)
The text was updated successfully, but these errors were encountered:
Thanks for bringing it up, but this is a known issue. I am working on a fix to get all the data going back to the start. Will not be forever but another week or two.
Describe the bug
When using the cfbd_pbp_data for any data before 2014, I am getting errors.
When running the following:
Input:
tmp <- tibble()
wk <- 3
seas <- "regular"
yr <- 2013
tmp <- cfbd_pbp_data(yr, seas, wk, team = NULL, play_type = NULL, epa_wpa = TRUE), it returns the following error:
Error:
Error in predict.nnet(object, X) : missing values in 'x'
In addition: Warning messages:
1: In log(dat$new_distance[neg_distance]) : NaNs produced
2: In log(dat$new_distance[neg_distance]) : NaNs produced
3: In log(dat$new_distance[neg_distance]) : NaNs produced
4: In log(dat$new_distance[neg_distance]) : NaNs produced
5: In log(dat$new_distance[neg_distance]) : NaNs produced
6: In log(dat$new_distance[neg_distance]) : NaNs produced
Sometimes another error is produced:
Input:
tmp <- tibble()
wk <- 1
seas <- "regular"
yr <- 2012
tmp <- cfbd_pbp_data(yr, seas, wk, team = NULL, play_type = NULL, epa_wpa = TRUE)
Error:
Error in predict.nnet(object, X) : missing values in 'x'
In addition: There were 20 warnings (use warnings() to see them)
The text was updated successfully, but these errors were encountered: