Learn R Programming

kknn (version 1.4.0)

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!

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

Examples

Run this code

data(glass)
str(glass)

Run the code above in your browser using DataLab