Skip to contents

This dataset, mlb_teams_2024, is a data frame containing season-level team statistics for Major League Baseball teams during the 2024 season. It includes information on league affiliation, wins, and offensive statistics such as runs, hits, home runs, RBI, stolen bases, walks, strikeouts, and batting average.

Usage

data(mlb_teams_2024)

Format

A data frame with 30 observations and 14 variables:

Team

Character vector indicating the name of the MLB team

League

Character vector indicating the league the team belongs to (American or National)

Wins

Integer vector indicating the number of games won by the team

Runs

Integer vector indicating the total number of runs scored by the team

Hits

Integer vector indicating the total number of hits by the team

Doubles

Integer vector indicating the total number of doubles hit by the team

Triples

Integer vector indicating the total number of triples hit by the team

HomeRuns

Integer vector indicating the total number of home runs hit by the team

RBI

Integer vector indicating the total number of runs batted in by the team

StolenBases

Integer vector indicating the total number of stolen bases by the team

CaughtStealing

Integer vector indicating the total number of times the team was caught stealing

Walks

Integer vector indicating the total number of walks drawn by the team

Strikeouts

Integer vector indicating the total number of strikeouts by the team

BattingAvg

Numeric vector indicating the team's overall batting average

Source

Data taken from the Lock5Data package version 4.0.1

Details

The dataset name has been kept as 'mlb_teams_2024' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the sportsR package and assists users in identifying its specific characteristics.