Hi I am used to handle bio information such as NMR data or IR data . I want to perform pls regression, so I search the help page of plsr. and I use the example of plsr. But I have a problem to make appropriate data format to do plsr. these example data type like this : 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 I want to make a matrix and vector in same data frame. how can I do ? [[alternative HTML version deleted]]
> I want to make a matrix and vector in same data frame.You need to protect your matrix by I () Btw: I'm actually writing a package for handling spectra that I plan to release in some weeks. It contains a vignette showing how pls calibration can be done. If you want to give it a try, let me know. Claudia Beleites -- Claudia Beleites DMRN, Universit? degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste