Skip to contents

Cereal data contain 15 cereals on which 145 infrared spectra and two chemical properties, starch and ash, are measured.

Usage

data(cereal)

Details

The data are from Varmuza and Filzmoser (2016).

Value

A list with the following elements:

x

A matrix for predictors: 15 rows and 145 columns.

y

A matrix for responses: 15 rows and 2 columns.

References

Varmuza, K. and Filzmoser, P. (2016), Introduction to multivariate statistical analysis in chemometrics, CRC press.

Examples

# load data set
data(cereal)

# the dimension of predictors
dim(cereal$x)
#> [1]  15 145

# the dimension of responses
dim(cereal$y)
#> [1] 15  2