In order to test the model, I should implement within the matchesFor function the importation of the already played matches dataset ordered by rounds for all leagues (here reported Italian league code from the webpage that already does this filter):
d = Import["https://www.soccerstats.com/results.asp?league=italy&pmtype=\bygameweek","Data"];
Thank you Rohit!
Actually I would need to have all the main european leagues data within three big vectors only, that is Chome, Caway and matches.
Basically, I would like to have
by manipulating website pages root with a function which creates it. And so on for Caway and matches, instead of doing it by repeating the same ...
To get a list containing the Home values for all of the countries as separate sub lists:
allHome = countryMatches // Map[KeyTake[#, "Home"] &] // Catenate
Similarly for any other key in the association.
I modified the code so it is easier (at least for me) to understand and wrapped it in a function that returns an Association of associations ...