tm_standings_schedule: Scrape game results by team and season.

Description Usage Arguments Details

View source: R/tm_standing_schedule.R

Description

Pulls data on the team's opponent, result (W or L), runs allowed, runs scored, cumulative record, winning/losing pitcher last name, time of game, type of game (day or night), attendance, and current win streak. Each row represents one game.

Usage

1
tm_standings_schedule(team, year, start_year = NULL, end_year = NULL)

Arguments

team

Team abbreviation, three leter character value. See the data object MLB_colors for approved abbreviations.

year

Numeric year. Default is to take the past full season if pulled in the offseason or the current season if pulled after opening day.

start_year

Numeric value that identifies the beginning year to pull a range of data for the team of interest. This is an optional parameter.

end_year

Numeric value that identifies the ending year to pull a range of data for the team of interest. This is an optional parameter.

Details

Data obtained from https://www.baseball-reference.com.


williazo/rwindow.baseball documentation built on May 29, 2019, 11:47 a.m.