Learn R Programming

baseballr (version 1.6.0)

fg_park: Scrape Park Factors from FanGraphs

Description

This function allows you to scrape park factors for a given season from FanGraphs.com.

This function allows you to scrape park factors by handedness from FanGraphs.com for a given single year.

Usage

fg_park(yr)

fg_park_hand(yr)

Value

Returns a tibble of park factors.

col_nametypes
seasoninteger
home_teamcharacter
basic_5yrinteger
3yrinteger
1yrinteger
singleinteger
doubleinteger
tripleinteger
hrinteger
sointeger
UIBBinteger
GBinteger
FBinteger
LDinteger
IFFBinteger
FIPinteger

Returns a tibble of park factors by handedness.

col_nametypes
seasoninteger
home_teamcharacter
single_as_LHHinteger
single_as_RHHinteger
double_as_LHHinteger
double_as_RHHinteger
triple_as_LHHinteger
triple_as_RHHinteger
hr_as_LHHinteger
hr_as_RHHinteger

Arguments

yr

Season for which you want to scrape the park factors.

Examples

Run this code
# \donttest{
  try(fg_park(2013))
# }
# \donttest{
  try(fg_park_hand(2013))
# }

Run the code above in your browser using DataLab