JaseZiv / worldfootballR

A wrapper for extracting world football (soccer) data from FBref, Transfermark, Understat
https://jaseziv.github.io/worldfootballR/
444 stars 60 forks source link

get_match_lineups return NA for the away team in Team column #147

Closed walpita-dev closed 2 years ago

walpita-dev commented 2 years ago

Hi,

First of all, thanks for this amazing library !

I did notice that the function get_match_lineups ( fbref ) return NA instead of actual team name for the away team in the column 'Team'.

Capture d’écran 2022-07-18 à 11 09 38

I used those line of code :

    matchUrls <- "https://fbref.com/en/matches/324e5654/Lens-Strasbourg-September-22-2021-Ligue-1"
    lineups <- get_match_lineups(match_url = matchUrls)
    View(lineups)

The same behavior happen with other URL from Ligue 1 ( at least ).

I'm using worldfootballR_0.5.8 in RStudio ( 4.1.2 ).

Thanks again for the lib !

JaseZiv commented 2 years ago

Thanks for pointing this out!

This should now be fixed with the latest dev release. Install the update using devtools::install_github("JaseZiv/worldfootballR").

Let me know if there's any further issues.

walpita-dev commented 2 years ago

It does work. Thanks for the quick fix !