R Dataset / Package ISLR / Hitters
Documentation |
---|
On this R-data statistics page, you will find information about the Hitters data set which pertains to Baseball Data. The Hitters data set is found in the ISLR R package. You can load the Hitters data set in R by issuing the following command at the console data("Hitters"). This will load the data into a variable called Hitters. If R says the Hitters data set is not found, you can try installing the package by issuing this command install.packages("ISLR") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the Hitters R data set. The size of this file is about 27,040 bytes. Baseball DataDescriptionMajor League Baseball Data from the 1986 and 1987 seasons. UsageHitters FormatA data frame with 322 observations of major league players on the following 20 variables.
SourceThis dataset was taken from the StatLib library which is maintained at Carnegie Mellon University. This is part of the data that was used in the 1988 ASA Graphics Section Poster Session. The salary data were originally from Sports Illustrated, April 20, 1987. The 1986 and career statistics were obtained from The 1987 Baseball Encyclopedia Update published by Collier Books, Macmillan Publishing Company, New York. ReferencesGames, G., Witten, D., Hastie, T., and Tibshirani, R. (2013) An Introduction to Statistical Learning with applications in R, www.StatLearning.com, Springer-Verlag, New York Examplessummary(Hitters) lm(Salary~AtBat+Hits,data=Hitters) -- Dataset imported from https://www.r-project.org. |
Title | Authored on | Content type |
---|---|---|
OpenIntro Statistics Dataset - dream | August 9, 2020 - 12:25 PM | Dataset |
OpenIntro Statistics Dataset - winery_cars | August 9, 2020 - 2:38 PM | Dataset |
R Dataset / Package HSAUR / toothpaste | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HSAUR / pottery | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HistData / Guerry | March 9, 2018 - 1:06 PM | Dataset |
Attachment | Size |
---|---|
dataset-87300.csv | 26.41 KB |