Learn R Programming

baseballr (version 0.3.3)

viz_wlpct_on_period: Scrape MLB Standings on a Given Period and Visualize the Win-Loss percentage (WLpct) on any division or league

Description

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

Usage

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

Run this code
# NOT RUN {
viz_wlpct_on_period("2018-03-29","2018-04-25", "AL Overall")
# }

Run the code above in your browser using DataLab