Update lda.R