Since I wrote this first post back in 2019, a few things have changed with how our capture the data from the StatsBomb open data sets. So this post, is mostly unchanged, but the code itself is different and will work with newer versions of R, namely 4+.