StatsBombR
StatsBombR copied to clipboard
StatsBombFreeEvents() bug
Copy & pasting the code from the "Working-with-R.pdf" document from StatsBomb,
llibrary(tidyverse)
library(StatsBombR)
Comp <- FreeCompetitions() %>%
filter(competition_id==37 & season_name=="2020/2021")
Matches <- FreeMatches(Comp)
StatsBombFreeEvents(MatchesDF = Matches, Parallel = T)
produces the error
Error in if (MatchesDF == "ALL") { : the condition has length > 1
which is odd, especially since I didn't type MatchesDF=="ALL"
but maybe I'm not understanding the error message. In any case, the tutorial code is not working.