msf_by_team: MySportsFeeds API calls by team

Description Usage Arguments Functions Examples

View source: R/by-team.r

Description

If you provide multiple teams 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
msf_by_team(feed, sport, team, season = "current", delay = 1)

team_gamelogs(sport, team, ...)

player_gamelogs(sport, team, ...)

Arguments

feed

feed to request

sport

mlb | nfl | nba | etc..

team

team id or abbreviation

season

ex. 2017-regular | current

delay

number of seconds between queries

...

additional parameters passed to msf_by_team such as season

Functions

Examples

1
2
3
4
## Not run: 
resp <- team_gamelogs("nba", c("bos", "atl"))

## End(Not run)

zamorarr/msf documentation built on May 3, 2019, 9:01 p.m.