devinpleuler / analytics-handbook

Getting started with soccer analytics
MIT License
1.46k stars 205 forks source link

Adding R xThreat Implementation #13

Closed gkrhines closed 3 years ago

gkrhines commented 3 years ago

First of all, let me say how awesome this project is. As someone who has just begun getting interested in soccer analytics, it has been my go to when I have a new idea or do not understand something foreign to me.

That being said, I am much more comfortable with R instead of Python. The lack of the former language in this handbook did make it hard to get started working with some of the tools that are provided. In the end, I actually ended up converting xthreat.py (from the socceraction repo) to an R script. That file can be found here.

If you wanted to add the script (which is SPADL compatible) to your handbook, I would be honored. I think it would allow programmers who have less experience with Python to be able to wrap their heads around the ideas they find here a little quicker.

Thanks for all your work!

devinpleuler commented 3 years ago

Thanks, Grant. I am going to keep this repository purely python – as that is the focus.

gkrhines commented 3 years ago

I understand! Thanks, Devin.