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 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

Source

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

See Also

Lahman::Teams


mdsr documentation built on Sept. 11, 2024, 5:07 p.m.