StatsBombR icon indicating copy to clipboard operation
StatsBombR copied to clipboard

StatsBombFreeEvents() bug

Open KR3YGK opened this issue 1 year ago • 0 comments

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.

KR3YGK avatar Feb 21 '24 23:02 KR3YGK