Updates the get_scores to work with the updated SoFIFA site
Also retrieves: player_name, fifa_version, date
Also adds other player scores: Preferred Foot, International_Reputation, Weak Foot and Body Type.
Merging #4 as well would be ideal to ensure consistent results.
Added player historic data using get_player_history(player_ids), which will return a data.frame like so:
version
exportdate
date
player_id
15
123456
16-08-2015
5
16
321456
13-05-2016
7
The user can filter using the $date and $player_ids fields. The $version
and $exportdate fields are used to get the player scores like so:
Progress messages now use message instead of cat (can be suppressed with suppressMessages())
Removed the max_results option as I think it can be made redundant. I suggest that users limit the amount of scraped pages by limiting the amount of ids requested in the first place:
Updates the
get_scores
to work with the updated SoFIFA site Also retrieves: player_name, fifa_version, date Also adds other player scores: Preferred Foot, International_Reputation, Weak Foot and Body Type. Merging #4 as well would be ideal to ensure consistent results.Added player historic data using
get_player_history(player_ids)
, which will return a data.frame like so:The user can filter using the $date and $player_ids fields. The $version and $exportdate fields are used to get the player scores like so:
Progress messages now use
message
instead ofcat
(can be suppressed withsuppressMessages()
)Removed the max_results option as I think it can be made redundant. I suggest that users limit the amount of scraped pages by limiting the amount of ids requested in the first place:
This has the added benefit of letting users choose whatever sampling method they want (
head
,tail
,sample
, etc.)