Learn R Programming

baseballr (version 0.8.6)

standings_on_date_bref: Scrape MLB Standings on a Given Date

Description

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

Usage

standings_on_date_bref(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

Examples

Run this code
# NOT RUN {
standings_on_date_bref("2015-08-04", "AL East")
# }

Run the code above in your browser using DataLab