MLB_teams: Data about recent major league baseball teams

MLB_teamsR Documentation

Data about recent major league baseball teams

Description

A dataset containing information about Major League Baseball teams from 2008-2014.

Usage

MLB_teams

Format

A tbl_df object.

yearID

season in which the team played

teamID

the team's three character identifier

lgID

the league in which the team played

W

number of wins

L

number of losses

WPct

winning percentage

attendance

number of fans in attendance

normAttend

number of fans in attendance, relative to the team with the highest attendance in this sample (the 2008 New York Yankees)

payroll

the sum of the salaries of the players on each team. Note that this number is only an estimate of the actual team payroll – and may not even be a very good one. Salaries are accumulated from Salaries

metroPop

the size of the team's home city's metropolitan population, according to Wikipedia and the 2010 US Census

name

the full name of the team

Source

The Teams table from Lahman-package and https://en.wikipedia.org/wiki/List_of_Metropolitan_Statistical_Areas

See Also

Teams


mdsr-book/mdsr documentation built on April 21, 2024, 8:41 a.m.