Learn R Programming

cluster.datasets (version 1.0-1)

nails.screws: Hartigan (1975) Nails and Screws

Description

The table contains the attributes for a sample of nails and screws. This is Table 12.7 in Chapter 12 of Hartigan (1975) on page 228.

Usage

data(nails.screws)

Arguments

Format

A data frame with 24 observations on the following 7 variables.
name
a character vector for the name of the object
threaded
a factor for the presence of threads with levels N Y
head
a factor for the type of head with levels F O R U Y
indentation
a factor for the head indentation with levels L N T
bottom
a factor for the type of bottom with levels F S
length
a numeric vector for the length in half inches
brass
a factor that determines if the object is made of brass with levels N Y

Source

Hartigan, J. A. (1975). Clustering Algorithms, John Wiley, New York. SPAETH2 Cluster Analysis Datasets http://people.sc.fsu.edu/~jburkardt/datasets/spaeth2/spaeth2.html

Details

All the attributes, with the exception of length, are factors. The factor values for the threaded variable are as follows.
Y
yes
The factor values for the head variable are as follows.
F
flat
U
cut
O
cone
R
round
The factor values for the head indentation variable are as follows.
N
none
T
star
The value values for the brass variable are as follows
Y
yes

References

Hartigan, J. A. (1975). Clustering Algorithms, John Wiley, New York.

Examples

Run this code
data(nails.screws)

Run the code above in your browser using DataLab