nir_milk: Near infra red light (NIR) measurements in milk

nir_milkR Documentation

Near infra red light (NIR) measurements in milk

Description

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.

Usage

nir_milk

NIRmilk

Format

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).

An object of class data.frame with 17 rows and 158 columns.

Examples

	
data(nir_milk)
data(NIRmilk)


doBy documentation built on Dec. 2, 2025, 9:08 a.m.