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
I'd make this a pull request but I'm running a much different fork of the package for use with R <v5.0.
getallinfo() is failing currently for the latest FA WSL fixtures due to some weirdness in match_id == 19790:
Reprex:
library(dplyr)
library(StatsBombR)
# get all available fixtures from StatsBomb
fixture <- FreeMatches(37) %>%
filter(match_id == 19790)
getallinfo(fixture)
# Error in matrix(ncol = ncol(myList[[1]]), nrow = 1) : non-numeric matrix extent
Going through step-by-step, it's functions goalkeeperinfo() and freezeframeinfo() that fail; in both cases seems to be due to the first entry of Shots.FF being NULL, causing the fixnull function to fail.
A simple fix is to use the first non-null of myList in fixnull, changing line 13 of goalkeeperinfo.R and line 23 of freezeframeinfo from:
I'd make this a pull request but I'm running a much different fork of the package for use with R <v5.0.
getallinfo()
is failing currently for the latest FA WSL fixtures due to some weirdness inmatch_id == 19790
:Reprex:
Going through step-by-step, it's functions
goalkeeperinfo()
andfreezeframeinfo()
that fail; in both cases seems to be due to the first entry ofShots.FF
being NULL, causing thefixnull
function to fail.A simple fix is to use the first non-null of
myList
infixnull
, changing line 13 of goalkeeperinfo.R and line 23 of freezeframeinfo from:to:
The text was updated successfully, but these errors were encountered: