Title: | An R API Wrapper for the Monash University Probabilistic Footy Tipping Competition |
---|---|
Description: | An API wrapper for the 'Monash University Probabilistic Footy Tipping Competition' <https://probabilistic-footy.monash.edu/~footy/index.shtml>. Allows users to submit tips directly to the competition from R. |
Authors: | James Day [aut, cre, cph] |
Maintainer: | James Day <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0.9000 |
Built: | 2024-11-08 02:40:52 UTC |
Source: | https://github.com/jimmyday12/monashtipr |
get_current_games provides an API to return the current rounds matches in a data frame.
get_games(user, pass, comp, round = NULL)
get_games(user, pass, comp, round = NULL)
user |
monash username, in text |
pass |
monash password, in text |
comp |
comp type, should be one of "normal", "gauss" or "info" |
round |
(optional), round number to return. If not provided, will try find the current round. |
A tibble, containing the matches from the currently available tipping round
## Not run: get_games(user, pass, comp) ## End(Not run)
## Not run: get_games(user, pass, comp) ## End(Not run)
Submit Tips
submit_tips(games, user, pass, comp, round = NULL)
submit_tips(games, user, pass, comp, round = NULL)
games |
a table of games, ideally returned from |
user |
monash username, in text |
pass |
monash password, in text |
comp |
comp type, should be one of "normal", "gauss" or "info" |
round |
(optional), round number to return. If not provided, will try find the current round. |
A tibble, containing the games and tips submitted via the API with a status column
## Not run: submit_tips(games, user, pass, comp) ## End(Not run)
## Not run: submit_tips(games, user, pass, comp) ## End(Not run)