bref_daily_pitcher: *Scrape Pitcher Performance Data Over a Custom Time Frame*

View source: R/bref_daily_pitcher.R

bref_daily_pitcherR Documentation

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)

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"

Value

Returns a tibble of pitcher performance over the requested date range, one row per player, with the following columns:

col_name types description
bbref_id character Baseball-Reference player id (slug).
season integer Season year.
Name character Player name.
Age numeric Player age during the season.
Level character League level (e.g. Maj-AL, Maj-NL).
Team character Team name.
G numeric Games pitched.
GS numeric Games started.
W numeric Wins.
L numeric Losses.
SV numeric Saves.
IP numeric Innings pitched.
H numeric Hits allowed.
R numeric Runs allowed.
ER numeric Earned runs allowed.
uBB numeric Unintentional walks allowed.
BB numeric Walks allowed.
SO numeric Strikeouts.
HR numeric Home runs allowed.
HBP numeric Batters hit by pitch.
ERA numeric Earned run average (per 9 innings).
AB numeric At-bats against.
X1B numeric Singles allowed.
X2B numeric Doubles allowed.
X3B numeric Triples allowed.
IBB numeric Intentional walks allowed.
GDP numeric Double plays induced.
SF numeric Sacrifice flies allowed.
SB numeric Stolen bases allowed.
CS numeric Runners caught stealing.
PO numeric Pickoffs.
BF numeric Batters faced.
Pit numeric Total pitches thrown.
Str numeric Strikes thrown (as a share of pitches).
StL numeric Looking (called) strikes share.
StS numeric Swinging strikes share.
GB.FB numeric Ground ball to fly ball share.
LD numeric Line drive share.
PU numeric Pop-up (infield fly) share.
WHIP numeric Walks plus hits per inning pitched.
BAbip numeric Batting average on balls in play allowed.
SO9 numeric Strikeouts per 9 innings.
SO.W numeric Strikeout-to-walk ratio.
SO_perc numeric Strikeout rate (per batter faced).
uBB_perc numeric Unintentional walk rate (per batter faced).
SO_uBB numeric Strikeouts minus unintentional walks.

Examples


  try(bref_daily_pitcher("2015-05-10", "2015-06-20"))


baseballr documentation built on Aug. 27, 2026, 1:07 a.m.