soil: The soil dataset

Description Usage References Examples

Description

The soil dataset contains 108 sample measurements from the wavelength range of 400<e2><80><93>2500 nm (visible and near infrared spectrum) published by Rinnan et al.

Usage

1

References

Rinnan, R., & Rinnan, A. (2007). Application of near infrared reflectance (NIR) and fluorescence spectroscopy to analysis of microbiological and chemical properties of arctic soil. Soil biology and Biochemistry, 39(7), 1664–1673.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data("soil")

X <- soil$x
y <- soil$som
n <- nrow(soil$x)

set.seed(1001)
samp.idx <- sample(1L:n, round(n * 0.7))
X.cal <- X[samp.idx, ]
y.cal <- y[samp.idx]
X.test <- X[-samp.idx, ]
y.test <- y[-samp.idx]

Example output



OHPL documentation built on May 18, 2019, 9:03 a.m.