What is the function of the formula used in lda(linear discriminant analysis) in R

r
lda
dimensionreduction

#1

Hello,

For doing LDA in R we use lda(formula…),where formula is of the form y1~x1+x2+… What exactly does this equation signify here?