bref_gamebehind_plot: Scrape MLB Standings on a Given Period and Visualize the...

View source: R/bref_rank_on_date.R

bref_gamebehind_plotR Documentation

Scrape MLB Standings on a Given Period and Visualize the Games Behind (GB) on any division or league the league

Description

This function allows you to scrape the standings from MLB for a period you choose, and visualize the GB of teams along that period.

Usage

bref_gamebehind_plot(start_date, end_date, lg_div)

Arguments

start_date

a date object representing the first date of the period

end_date

a date object representing the last date of the period

lg_div

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

Examples

## Not run: 
bref_gamebehind_plot("2017-04-02","2017-04-10", "AL East")

## End(Not run)

pontsuyu/mlbR documentation built on March 23, 2023, 6:38 a.m.