Near infra red light (NIR) measurements are made at 152 wavelengths on 17 milk samples. While milk runs through a glass tube, infra red light is sent through the tube and the amount of light passing though the tube is measured at different wavelengths. Each milk sample was additionally analysed for fat, lactose, protein and dry matter.
nir_milk
Data comes in two formats:
nir_milk: A list with two components
x Datafrane with infra red light amount at different wavelengths (column names are the wavelengths; just remove the leading X).
y Datafrane with response variables fat, protein, lactose and dm (drymatter)
NIRmilk: This data frame contains 17 rows and 158 columns.
The first column is the sample number.
The columns named in the form Xw
contains
the transmittance (fraction of electromagnetic power)
transmittance through the sample at wavelength w
.
The response variables are fat, protein, lactose and dm (dry matter).