game_stats: Game Stats Function

Description Usage Arguments Examples

View source: R/season_grab.R

Description

This function returns a data.frame of game statistics for a team in a given season

Usage

1
game_stats(team_num, year, game_count = NULL, bothteams = TRUE)

Arguments

team_num

The number of the team. You can use the baseballr package to look up team_num.

year

The year of the season you want.

game_count

The number of games back from latest point in pull. For example, 5 would give you last 5 games of the season. If null, the entire season is grabbed.

bothteams

By default, bothteams is true and stats for your selected team and each opponent will be included. To only get the team you selected set to false.

Examples

1
2
game_stats(457,2018)
game_stats()

bnoreen/ncaaBaseball documentation built on March 13, 2021, 6:30 a.m.