hitters | R Documentation |
Major League Baseball data from the 1986 and 1987 seasons.
A data frame with 322 observations of major league players on the following 20 variables.
Number of times at bat in 1986.
Number of hits in 1986.
Number of home runs in 1986.
Number of runs in 1986.
Number of runs batted in in 1986.
Number of walks in 1986.
Number of years in the major leagues.
Number of times at bat during his career.
Number of hits during his career.
Number of home runs during his career.
Number of runs during his career.
Number of runs batted in during his career.
Number of walks during his career.
A factor with levels A
and N
indicating
player's league at the end of 1986.
A factor with levels E
and W
indicating player's division at the end of 1986.
Number of put outs in 1986.
Number of assists in 1986.
Number of errors in 1986.
1987 annual salary on opening day in thousands of dollars.
A factor with levels A
and N
indicating
player's league at the beginning of 1987.
This is a corrected version of the Hitters
data set
based on the corrections listed in Hoaglin and Velleman (1995).
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.
Hoaglin, D. C. and Velleman, P. F. (1995). A critical look at some analyses ofmajor league baseball salaries. The American Statistician, 49(3):277-285.
Hitters
.
summary(hitters <- treemisc::hitters) plot(log(Salary) ~ Years, data = hitters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.