msf_by_season: MySportsFeeds API calls by season

Description Usage Arguments Functions Examples

View source: R/by-season.r

Description

If you provide multiple seasons it will execute with a delay between each query. This is to ensure you obey limit rates but you are free to lower the parameter if you don't think your queries will reach the throttle limits.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19

Arguments

feed

feed to request

sport

mlb | nfl | nba | etc..

season

ex. 2017-regular | current

delay

number of seconds between queries

...

additional parameters passed to msf_by_season such as season

Functions

Examples

1
2
3
4
5
6
## Not run: 
resp <- active_players("nba")
resp <- full_game_schedule("nfl", c("2017-2018-regular", "2016-2017-regular"), delay = 3)
resp <- player_injuries("nhl", "2016-2017-regular")

## End(Not run)

zamorarr/msf documentation built on June 22, 2018, 7:23 p.m.