View source: R/toa_sports_scores.R
| toa_sports_scores | R Documentation |
Get the scores for the sports which the Odds API provides coverage
try(toa_sports_scores(sport_key = 'baseball_mlb',
days_from = NULL,
date_format = 'iso'))
toa_sports_scores(sport_key, days_from = 1, date_format = "iso")
sport_key |
(string, required): The |
days_from |
(integer, optional): Integer from 1 to 3. Defaults to 1. |
date_format |
(string, optional): Date format. Options include:
|
Sports scores which The Odds API provides scores information for as a tibble:
| col_name | types |
| id | character |
| sport_key | character |
| sport_title | character |
| commence_time | character |
| completed | logical |
| home_team | character |
| away_team | character |
| scores | logical |
| last_update | logical |
try(toa_sports_scores(sport_key = 'baseball_mlb',
days_from = NULL,
date_format = 'iso'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.