On this Picostat.com statistics page, you will find information about the Baseball data set which pertains to Baseball Data. The Baseball data set is found in the vcd R package. Try to load the Baseball data set in R by issuing the following command at the console data("Baseball"). This may load the data into a variable called Baseball. If R says the Baseball data set is not found, you can try installing the package by issuing this command install.packages("vcd") and then attempt to reload the data with library("vcd") followed by data("Baseball"). Perhaps strangley, if R gives you no output after entering a command, it means the command succeeded. If it succeeded you can see the data by typing Baseball at the command-line which should display the entire dataset.
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 Baseball R data set. The size of this file is about 33,338 bytes.
A data frame with 322 observations and 25 variables.
player's first name.
player's last name.
times at Bat: number of official plate appearances by
a hitter. It counts as an official at-bat as long as the batter
does not walk, sacrifice, get hit by a pitch or reach base due to
the number of runs scored by a player. A run is
scored by an offensive player who advances from batter to runner
and touches first, second, third and home base in that order
without being put out.
Runs Batted In: A hitter earns a run batted in when he
drives in a run via a hit, walk, sacrifice (bunt or fly) fielder's
choice, hit-batsman or on an error (when the official scorer rules
that the run would have scored anyway).
A “walk” (or “base on balls”) is an
award of first base granted to a batter who receives four pitches
outside the strike zone.
Years in the Major Leagues. Seems to count all years a
player has actually played in the Major Leagues, not necessarily
career times at bat.
career home runs.
career runs batted in.
player's position (see
number of putouts (see
number of assists (see
number of assists (see
annual salary on opening day (in USD 1000).
league in 1987.
team in 1987.
SAS System for Statistical Graphics, First Edition, page A2.3
M. Friendly (2000),
Visualizing Categorical Data.
SAS Institute, Cary, NC.
Dataset imported from https://www.r-project.org.