Learn R Programming

rchemo (version 0.1-3)

forages: forages

Description

A NIRS dataset (pre-processed absorbance) describing the class membership of forages. Spectra were recorded from 1100 to 2498 nm at 2 nm intervals.

Usage

data(forages)

Arguments

Format

A list with 4 components: Xtrain, ytrain, Xtest, ytest.

For the reference (calibration) data:

Xtrain

A matrix whose rows are the pre-processed NIR absorbance spectra (= log10(1 / Reflectance)).

ytrain

A vector of the response variable (class membership).

For the test data:

Xtest

A matrix whose rows are the pre-processed NIR absorbance spectra (= log10(1 / Reflectance)).

ytest

A vector of the response variable (class membership).

Examples

Run this code

data(forages)
str(forages)

Run the code above in your browser using DataLab