Learn R Programming

baseballr (version 1.5.0)

bref_daily_pitcher: Scrape Pitcher Performance Data Over a Custom Time Frame

Description

This function allows you to scrape basic pitcher statistics over a custom time frame. Data is sourced from Baseball-Reference.com.

Usage

bref_daily_pitcher(t1, t2)

Value

Returns a tibble of pitcher performance with the following columns:

col_nametypes
bbref_idcharacter
seasoninteger
Namecharacter
Agenumeric
Levelcharacter
Teamcharacter
Gnumeric
GSnumeric
Wnumeric
Lnumeric
SVnumeric
IPnumeric
Hnumeric
Rnumeric
ERnumeric
uBBnumeric
BBnumeric
SOnumeric
HRnumeric
HBPnumeric
ERAnumeric
ABnumeric
X1Bnumeric
X2Bnumeric
X3Bnumeric
IBBnumeric
GDPnumeric
SFnumeric
SBnumeric
CSnumeric
POnumeric
BFnumeric
Pitnumeric
Strnumeric
StLnumeric
StSnumeric
GB.FBnumeric
LDnumeric
PUnumeric
WHIPnumeric
BAbipnumeric
SO9numeric
SO.Wnumeric
SO_percnumeric
uBB_percnumeric
SO_uBBnumeric

Arguments

t1

First date data should be scraped from. Should take the form "YEAR-MONTH-DAY"

t2

Last date data should be scraped from. Should take the form "YEAR-MONTH-DAY"

Examples

Run this code
# \donttest{
  try(bref_daily_pitcher("2015-05-10", "2015-06-20"))
# }

Run the code above in your browser using DataLab