Package 'monashtipr'

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

Help Index


Get Games

Description

get_current_games provides an API to return the current rounds matches in a data frame.

Usage

get_games(user, pass, comp, round = NULL)

Arguments

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.

Value

A tibble, containing the matches from the currently available tipping round

Examples

## Not run: 
get_games(user, pass, comp)

## End(Not run)

Submit Tips

Description

Submit Tips

Usage

submit_tips(games, user, pass, comp, round = NULL)

Arguments

games

a table of games, ideally returned from get_games

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.

Value

A tibble, containing the games and tips submitted via the API with a status column

Examples

## Not run: 
submit_tips(games, user, pass, comp)

## End(Not run)