Learn R Programming

Sabermetrics (version 2.0)

parkfactors: Park Factors

Description

A function used to generate the park factors for a given season/team

Usage

parkfactors(year, team)

Arguments

year
Season
team
Team

Value

Returns a data frame with the respective park factors

Details

0 = All Teams 1 = Los Angeles Angels 2 = Orioles 3 = Boston Red Sox 4 = Chicago White Sox 5 = Cleveland Indians 6 = Detroit Tigers 7 = Kansas City Royals 8 = Minnesota Twins 9 = New York Yankees 10 = Oakland Athletics 11 = Seattle Mariners 12 = Tampa Bay Rays 13 = Texas Rangers 14 = Toronto Blue Jays 15 = Arizona Diamondbacks 16 = Atlanta Braves 17 = Chicago Cubs 18 = Cincinnati Reds 19 = Colorado Rockies 20 = Florida Marlins 21 = Houston Astros 22 = Los Angeles Dodgers 23 = Milwaukee Brewers 24 = Washington Nationals 25 = New York Mets 26 = Philadelphia Phillies 27 = Pittsburgh Pirates 28 = St. Louis Cardinals 29 = San Diego Padres 30 = San Francisco Giants

References

http://www.fangraphs.com/guts.aspx?type=pf&teamid=0&season=2014

See Also

handedparkfactors

Examples

Run this code
## To get all of 2014 Park Factors
# parkfactors(2014)

## To get all of the Angels' Park Factors
# parkfactors(2014,1)

Run the code above in your browser using DataLab