View source: R/bart_team_box.R
bart_team_box | R Documentation |
Returns aggregate team stats back to 2008
bart_team_box(
year = NULL,
start = NULL,
end = NULL,
team = NULL,
conf = NULL,
split = NULL,
stat = "total",
aggregate = FALSE,
...
)
year |
Filters to year. |
start |
Filters to starting year |
end |
Filters to ending year |
team |
Filters to team. |
conf |
Filters to conf. |
split |
Split to filter (see details). |
stat |
Filters for agg. stats (total) or avg. stats (avg) |
aggregate |
Aggregate all years (TRUE) or return per-year stats when passing a range of years (FALSE; default) |
... |
Any other parameter accepted by the API endpoint |
The 'split' argument filters the results by split, explained below:
Wins and losses
Game location
Game month
Game type
Returns a tibble with the number of columns dependent on the year.
try(bart_team_box(split='month', team='Duke'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.