R Dataset / Package vcd / Baseball

How To Create a Barplot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Stacked Barplot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Pie Chart

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Compute the Mean

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Plot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How to Compute the Median

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Boxplot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Correlation Coefficient

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Cumulative Frequency Histogram

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Dotplot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Hollow Histogram

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Numerical Summaries

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Pie Chart

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Plot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Regression

Stem and Leaf Plots

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Visual Summaries

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.
Embed
<iframe src="https://embed.picostat.com/r-dataset-package-vcd-baseball.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-16002.csv 32.56 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0
Dataset Help

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. You can load the Baseball data set in R by issuing the following command at the console data("Baseball"). This will 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. 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.

Documentation

Baseball Data

Description

Baseball data.

Usage

data("Baseball")

Format

A data frame with 322 observations and 25 variables.

name1

player's first name.

name2

player's last name.

atbat86

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 catcher's interference.

hits86

hits.

homer86

home runs.

runs86

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.

rbi86

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).

walks86

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

Years in the Major Leagues. Seems to count all years a player has actually played in the Major Leagues, not necessarily consecutive.

atbat

career times at bat.

hits

career hits.

homeruns

career home runs.

runs

career runs.

rbi

career runs batted in.

walks

career walks.

league86

player's league.

div86

player's division.

team86

player's team.

posit86

player's position (see Hitters).

outs86

number of putouts (see Hitters)

assist86

number of assists (see Hitters)

error86

number of assists (see Hitters)

sal87

annual salary on opening day (in USD 1000).

league87

league in 1987.

team87

team in 1987.

Source

SAS System for Statistical Graphics, First Edition, page A2.3

References

M. Friendly (2000), Visualizing Categorical Data. SAS Institute, Cary, NC.

See Also

Hitters

Examples

data("Baseball")
--

Dataset imported from https://www.r-project.org.

R Output Date
Picostat Output - Dotplot Apr 25, 2019
Picostat Output - Numerical Summaries Apr 25, 2019