Linear Discriminant Analysis in R: The Complete lda() Workflow, With the Math That Actually Matters

Here’s the full picture, run against the iris dataset, with real computed output at every step — not placeholder numbers.