Learn R Programming

fastR (version 0.10.3)

mlb2004: Major League Baseball 2004 team data

Description

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

Arguments

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

Run this code
# NOT RUN {
data(mlb2004)
xyplot(W ~ Rdiff, data=mlb2004)

# }

Run the code above in your browser using DataLab