toa_sports_scores {oddsapiR} | R Documentation |
Find scores for the sports which are accessible through the Odds API
Description
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'))
Usage
toa_sports_scores(sport_key, days_from = 1, date_format = "iso")
Arguments
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:
|
Value
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 |
Examples
try(toa_sports_scores(sport_key = 'baseball_mlb',
days_from = NULL,
date_format = 'iso'))
[Package oddsapiR version 0.0.3 Index]