Learn R Programming

fastR (version 0.10.3)

batting: Major League Batting 2000-2005

Description

Major League batting data for the seasons from 2000-2005.

Arguments

Format

A data frame with 8062 observations on the following 22 variables.

  • player unique identifier for each player

  • year year

  • stint for players who were traded mid-season, indicates which portion of the season the data cover

  • team three-letter code for team

  • league a factor with levels AA AL NL

  • G games

  • AB at bats

  • R runs

  • H hits

  • H2B doubles

  • H3B triples

  • HR home runs

  • RBI runs batted in

  • SB stolen bases

  • CS caught stealing

  • BB bases on balls (walks)

  • SO strike outs

  • IBB intentional base on balls

  • HBP hit by pitch

  • SH a numeric vector

  • SF sacrifice fly

  • GIDP grounded into double play

Examples

Run this code
# NOT RUN {
data(batting)
histogram(~HR,batting)

# }

Run the code above in your browser using DataLab