Learn R Programming

Rgbp (version 1.1.4)

baseball: Baseball Data

Description

Batting averages of 18 major league players through their first 45 official at bats of the 1970 season. These batting averages were published weekly in the New York Times, and by April 26, 1970.

Usage

data(baseball)

Arguments

Format

A data set of 18 players with 12 covariates:

FirstName

each player's first name

LastName

each player's last name

At.Bats

number of times batted

Hits

each player's number of hits among 45 at bats

BattingAverage

batting averages among 45 at bats

RemainingAt.Bats

number of times batted after 45 at bats until the end of season

RemainingAverage

batting averages after 45 at bats until the end of season

SeasonAt.Bats

number of times batted over the whole season

SeasonHits

each player's number of hits over the whole season

SeasonAverage

batting averages over the whole season

League

1 if a player is in the National league

Position

each player's position

Examples

Run this code
# NOT RUN {
  data(baseball)
# }

Run the code above in your browser using DataLab