R Dataset / Package Stat2Data / BaseballTimes
On this R-data statistics page, you will find information about the BaseballTimes data set which pertains to BaseballTimes. The BaseballTimes data set is found in the Stat2Data R package. You can load the BaseballTimes data set in R by issuing the following command at the console data("BaseballTimes"). This will load the data into a variable called BaseballTimes. If R says the BaseballTimes data set is not found, you can try installing the package by issuing this command install.packages("Stat2Data") and then attempt to reload the data with the library() command. 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 BaseballTimes R data set. The size of this file is about 540 bytes.
BaseballTimes
Description
Game times and boxscore information for baseball games
Format
A dataset with 15 observations on the following 7 variables.
Game | Code for opposing teams |
League | AL = American League or NL =Mational League |
Runs | Total number of runs scored (both teams) |
Margin | Margin of victory (Winner-Loser score) |
Pitchers | Total number of pitchers used (both teams |
Attendance | Number of spectators at the game |
Time | Total time for the game (in minutes) |
Details
Data were collected for 15 Major Leage Baseball (MLB) games played on August 26, 2008.
Source
Data from boxscores at www.baseball-reference.com
Dataset imported from https://www.r-project.org.