[R] How to create HyCa$NIR and octane like the "yarn" of "pls".
貝原巳樹雄
inctpat at gmail.com
Sun Feb 12 04:40:00 CET 2017
I am a user of package, "pls". I am going to draw the NIR spectra of my
own measured data using matplot.
Question
For example, I have such a csv data, "HyCa.csv", below.
Would you please tell me how to create a data like the "yarn".
yarn has the structure of "NIR" and "density".
That is to say,how to create HyCa$NIR and octane for drawing and
analyzing the obtained data.
X1540 X1560 X1580 X1600 Octane
S001 0.240016 0.232166 0.239428 0.255710 87.3
S002 0.246177 0.237545 0.243874 0.259296 87.0
S003 0.242777 0.234150 0.240941 0.256484 87.1
S004 0.244098 0.237214 0.244729 0.261580 89.7
S005 0.241922 0.231888 0.237418 0.252461 84.9
S006 0.242209 0.232352 0.238188 0.253036 84.7
S007 0.244148 0.237362 0.244701 0.261598 89.3
S008 0.242019 0.234185 0.241428 0.257564 87.6
S009 0.242408 0.232431 0.238130 0.253083 84.5
S010 0.244512 0.238601 0.246392 0.263583 91.7
Detaied explanation of "yarn"
--------------------
yarn NIR spectra and density measurements of PET yarns
Description
A training set consisting of 21 NIR spectra of PET yarns, measured at 268
wavelengths, and 21
corresponding densities. A test set of 7 samples is also provided. Many
thanks to Erik Swierenga.
56 yarn
Usage
yarn
Format
A data frame with components
NIR Numeric matrix of NIR measurements
density Numeric vector of densities
train Logical vector with TRUE for the training samples and FALSE for the
test samples
Source
Swierenga H., de Weijer A. P., van Wijk R. J., Buydens L. M. C. (1999)
Strategy for constructing
robust multivariate calibration models Chemometrics and Intelligent
Laboratoryy Systems, 49(1),1–17.
[[alternative HTML version deleted]]
More information about the R-help
mailing list