I am having a similar problem understanding the data structure of the
"yarn" dataset described in the "[R] data structure for plsr" posts. I have
spectroscopic data I'd like to run through a PLSR and have read the
tutorial series, but still do not understand the data format required for
the code to process my data. My current data structure consists of a .csv
file read into R containing 15 columns (a charcoal dilution series going
from 100% to 0%) and 1050 rows of absorbance data from 400 nm to 2500 nm at
 2 nm interval. I think I need to transpose the data such that the specific
wavelengths become my columns and dilutions are defined in rows, but after
that point I am lost. Should I (and how do I) make my absorbance data into
individual matrices that read into a data frame with only two columns
(dilution vs spectra or something of the sort that both the yarn and
gasoline data use)? Thank you for any pointers.

Emma

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to