bref_standings_on_date: *Scrape MLB Standings on a Given Date*

View source: R/bref_standings_on_date.R

bref_standings_on_dateR Documentation

Scrape MLB Standings on a Given Date

Description

This function allows you to scrape the standings from MLB for any date you choose.

Usage

bref_standings_on_date(date, division, from = FALSE)

Arguments

date

a date object

division

One or more of AL East, AL Central, AL West, AL Overall, NL East, NL Central, NL West, and NL Overall

from

a logical indicating whether you want standings up to and including the date (FALSE, default) or rather standings for games played after the date

Value

Returns a tibble of MLB standings with the following columns:

col_name types
Tm character
W integer
L integer
W-L% numeric
GB character
RS integer
RA integer
pythW-L% numeric

Examples


  try(bref_standings_on_date(date = "2015-08-04", division = "AL East"))


baseballr documentation built on April 1, 2023, 12:12 a.m.