wapls.weights(plsO, orgX, type = "w1", newX = NULL, pls.c)plsCv function or an object as returned by the opls function which contains a pls model.matrix which was used for calibrating the pls model."w1". See details on the mbl function where it is explained how "w1" is computed whitin the "wapls1" regression.vector of a new spectral sample. When "w1" is selected, newX must be specified.vector of length 2 which contains both the minimum and maximum number of PLS components for which the weights must be computed.wapls.weights returns a vector of weights for each PLS component specified