Learn R Programming

fastliu (version 1.0)

Hitters: Hitters

Description

Major League Baseball Data from the 1986 and 1987 seasons.

Arguments

Format

A data frame with 322 observations of major league players on the following 20 variables with explanations.

AtBatNumber of times at bat in 1986
Hits
Number of hits in 1986
HmRun
Number of home runs in 1986
RunsNumber of runs in 1986
RBI
Number of runs batted in 1986
Walks
Number of walks in 1986
YearsNumber of years in the major leagues
CAtBat
Number of times at bat during his career
CHits
Number of hits during his career
CHmRunNumber of home runs during his career
CRuns
Number of runs during his career
CRBI
Number of runs batted in during his career
CWalksNumber of walks during his career
League
A factor with levels A and N indicating player's league at the end of 1986
Division
A factor with levels E and W indicating player's division at the end of 1986
PutOutsNumber of put outs in 1986
Assists
Number of assists in 1986
Errors
Number of errors in 1986
Salary1987 annual salary on opening day in thousands of dollars
NewLeague
A factor with levels A and N indicating player's league at the beginning of 1987

References

James, G., Witten, D., Hastie, T., and Tibshirani, R. (2013). An Introduction to Statistical Learning with applications in R, https://www.statlearning.com, Springer-Verlag, New York.

James G, Witten D, Hastie T, Tibshirani R (2022). ISLR2: Introduction to Statistical Learning, Second Edition. R package version 1.3-2, https://CRAN.R-project.org/package=ISLR2.