Learn R Programming

kknn (version 1.3.1)

glass: Glass Identification Database

Description

A data frame with 214 observations, where the problem is to predict the type of glass in terms of their oxide content (i.e. Na, Fe, K, etc). The study of classification of types of glass was motivated by criminological investigation. At the scene of the crime, the glass left can be used as evidence... if it is correctly identified!

Usage

data(glass)

Arguments

Format

A data frame with 214 observations on the following 11 variables.
Id
Id number.
RI
Refractive index.
Na
Sodium (unit measurement: weight percent in corresponding oxide, as are attributes 4-10).
Mg
Magnesium.
Al
Aluminum.
Si
Silicon.
K
Potassium.
Ca
Calcium.
Ba
Barium.
Fe
Iron.
Type
Type of glass: (class attribute) 1 building windows float processed 2 building windows non float processed 3 vehicle windows float processed 4 vehicle windows non float processed (none in this database) 5 containers 6 tableware 7 headlamps

Source

  • Creator: B. German, Central Research Establishment, Home Office Forensic Science Service, Aldermaston, Reading, Berkshire RG7 4PN
  • Donor: Vina Spiehler, Ph.D., DABFT, Diagnostic Products Corporation
The data have been taken from the UCI Machine Learning Database Repository http://www.ics.uci.edu/~mlearn/MLRepository.html and were converted to R format by klaus.schliep@gmail.com.

Examples

Run this code
data(glass)
str(glass)

Run the code above in your browser using DataLab