MLB2004: Major League Baseball 2004 team data

MLB2004R Documentation

Major League Baseball 2004 team data

Description

Team batting statistics, runs allowed, and runs scored for the 2004 Major League Baseball season.

Format

A data frame with 30 observations on the following 20 variables.

team

team city, a factor

league

League, a factor with levels AL NL

W

number of wins

L

number of losses

G

number of games

R

number of runs scored

OR

oppnents' runs – number of runs allowed

Rdiff

run difference – R - OR

AB

number of at bats

H

number of hits

DBL

number of doubles

TPL

number of triples

HR

number of home runs

BB

number of walks (bases on balls)

SO

number of strike outs

SB

number of stolen bases

CS

number of times caught stealing

BA

batting average

SLG

slugging percentage

OBA

on base average

Examples


data(MLB2004)
gf_point(W ~ Rdiff, data = MLB2004)


rpruim/fastR2 documentation built on Nov. 11, 2023, 7:32 a.m.