Learn R Programming

mdsr (version 0.2.8)

MLB_teams: Data about recent major league baseball teams

Description

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

Usage

MLB_teams

Arguments

Format

A tibble::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 Lahman::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

See Also

Lahman::Teams