Learn R Programming

OmicsPLS (version 2.1.0)

scores: Extract the scores from an O2PLS fit

Description

This function extracts score matrices from an O2PLS fit

Usage

scores(x, ...)

# S3 method for o2m scores( x, which_part = c("Xjoint", "Yjoint", "Xorth", "Yorth"), subset = 0, ... )

Value

Scores matrix

Arguments

x

Object of class o2m

...

For consistency

which_part

character string. One of the following: 'Xjoint', 'Yjoint', 'Xorth' or 'Yorth'.

subset

subset of scores vectors to be extracted.

See Also

loadings

Examples

Run this code
scores(o2m(scale(-2:2),scale(-2:2*4),1,0,0))

Run the code above in your browser using DataLab