This function takes a data matrix a and, depending on the class of b, projects the data using feature weights, or predicts new values using linear discriminant analysis (LDA) model object, or both.

a %projpred% b

Arguments

a

a matrix with colnames specified

b

a matrix with rownames specified, or a lda model object, or a list containing a matrix and/or a lda model object.

Value

matrix