R Dataset / Package MASS / ships

On this R-data statistics page, you will find information about the ships data set which pertains to Ships Damage Data. The ships data set is found in the MASS R package. You can load the ships data set in R by issuing the following command at the console data("ships"). This will load the data into a variable called ships. If R says the ships data set is not found, you can try installing the package by issuing this command install.packages("MASS") 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 ships R data set. The size of this file is about 738 bytes.

Ships Damage Data

Description

Data frame giving the number of damage incidents and aggregate months of service by ship type, year of construction, and period of operation.

Usage

ships

Format

type

type: "A" to "E".

year

year of construction: 1960–64, 65–69, 70–74, 75–79 (coded as "60", "65", "70", "75").

period

period of operation : 1960–74, 75–79.

service

aggregate months of service.

incidents

number of damage incidents.

Source

P. McCullagh and J. A. Nelder, (1983), Generalized Linear Models. Chapman & Hall, section 6.3.2, page 137

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

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-mass-ships.html" width="100%" height="100%" style="border:0px"></iframe>