Update LDA.R