JaseZiv/worldfootballR

`tm_player_injury_history()` returning erroneous records in some cases

Closed this issue · 0 comments

As raised by Mark Carey through X DMs, the tm_player_injury_history() results being returned contain incorrect seasons-clubs affected combinations:

packageVersion("worldfootballR")
[1] ‘0.6.5.3’

tm_player_url <- "https://transfermarkt.co.uk/mohamed-salah/profil/spieler/148455"
data <- worldfootballR::tm_player_injury_history(player_urls = tm_player_url)

The above code block returns this. While Mo Salah did play for Fiorentina, he wasn't playing for them during the 23/24 season:

image