Just posting a helper function for manually adding new results to the results dataframe in case you want to include it in the package. I often find myself wanting to analyse the latest results before the football-data.co.uk CSVs have been updated so this comes in handy. It uses the matchTeamnames() function described here.
addResult("Man City", "Stoke", 7, 2, Sys.Date() - 1) %>%
tail(2)
# Date Season home visitor FT hgoal vgoal division tier totgoal goaldif result
#194110 2017-10-01 2017 Newcastle United Liverpool 1-1 1 1 1 1 2 0 D
#194111 2017-10-14 2017 Manchester City Stoke City 7-2 7 2 1 1 9 5 H
Just posting a helper function for manually adding new results to the results dataframe in case you want to include it in the package. I often find myself wanting to analyse the latest results before the football-data.co.uk CSVs have been updated so this comes in handy. It uses the
matchTeamnames()
function described here.Example usage: