Closed ghdevin closed 3 years ago
Thanks I haven't checked the code works for the latest season. WIll do some debugging shortly
The new method of matching no longer relies on team codes but rather cleans up the team names so they can be matched on name.
Using the following conditions, it looks like Reece James some how gets replicated (in some cases I have seen him pop up 3 times in one [optimized] team). Also his team name is assigned Crystal Palace instead of Chelsea. Similarly, Tarkowski's team name is Chelsea now instead of Burnley.
df_xp <- fetch_xg_data(year = 2021)
result_xp <- optimise_team(objective = 'ppg', bank = 1000, bench_value = 0, gk = 2, def = 5, mid = 5, fwd = 3, custom_df = df_xp, min_games = 15)
No rush, just thought I would point it out.