baseball {corrgram} | R Documentation |
The data are for 322 Major Leaque Baseball regular and substitute hitters in 1986.
data(baseball)
A data frame with 322 observations on the following 22 variables.
Name
League
Team
Position
1B
(first
base), 2B
(second base), 3B
(third base), C
(catcher), OF
(outfield), DH
(designated hitter),
SS
(short stop), UT
(utility).Atbat
Hits
Homer
Runs
RBI
Walks
Years
Atbatc
Hitsc
Homerc
Runsc
RBIc
Walksc
Putouts
Assists
Errors
Salary
logSal
The levels of the player's positions have been collapsed to fewer levels for a simpler analysis. See the original data for the full list of positions.
The version of the data used to create this data was found at http://euclid.psych.yorku.ca/ftp/sas/sssg/data/baseball.sas. Michael Friendly analyzed the data in: Corrgrams: Exploratory Displays for Correlation Matrices, The American Statistician, Nov 2002, Vol 56. Online at: http://www.math.yorku.ca/SCS/Papers/corrgram.pdf.
The data was originally published for the 1988 ASA Statistical Graphics and Computing Data Exposition: http://lib.stat.cmu.edu/data-expo/1988.html. The salary data were taken from Sports Illustrated, April 20, 1987. The salary of any player not included in that article is listed as an NA. The 1986 and career statistics were taken from The 1987 Baseball Encyclopedia Update published by Collier Books, Macmillan Publishing Company, New York.
More information about the game of baseball can be found Wikipedia, http://en.wikipedia.org/wiki/Baseball.
data(baseball) ## maybe str(baseball) ; plot(baseball) ...