Learn R Programming

baseballr (version 0.2.0)

team_results_bref: Scrape Team Results

Description

This function allows you to scrape schedule and results for a major league team from Baseball-Reference.com

Usage

team_results_bref(Tm, year)

Arguments

Tm
The abbreviation used by Baseball-Reference.com for the team whose results you want to scrape.
year
Season for which you want to scrape the park factors.

Examples

Run this code
team_results_bref("NYM", 2015)
team_results_bref("TBR", 2008)

Run the code above in your browser using DataLab