This function searches for player IDs in the Fantasy Premier League based on their names and optionally their teams. A fuzzy match is implemnted.
     
    
    Usage
    fpl_find_player_id(name, team = NULL)
 
     
    
    Arguments
    - name
 
The name of the player to search for.
 
- team
 
(Optional) The team or teams to filter the search by. Defaults to all teams.
 
 
    
    Value
    
The player IDs matching the search criteria. If no match is found, returns NA_integer_.
     
    
    Examples
    fpl_find_player_id("Salah", team = "LIV")
#> ✔ Salah (Mohamed Salah) for LIV matched your search.
#> [1] 308
fpl_find_player_id("Rashford")
#> ✔ Rashford (Marcus Rashford) for MUN matched your search.
#> [1] 396