advanced_stats: Advanced Stats Function

Description Usage Arguments Examples

View source: R/season_grab.R

Description

This function returns a data.frame of advanced stats with each player and game for the entire season

Usage

1
advanced_stats(team_num, year, type, 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.

type

hitting, pitching, or fielding depending on what stats you want.

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
advanced_stats(457,2018,'pitching')
advanced_stats()

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