title: Extract LDA (linear discriminant analysis) data in R
body: <p>When I run this line </p>
  
  <pre><code>my.lda&lt;-lda(Group ~ X1+X2+X3+X4, data = df)
  </code></pre>
  
  <p>I get a long output that finish with this lines</p>
  
  <pre><code>Proportion of trace:
  
     LD1    LD2    LD3    LD4 
  
  0.8750 0.0958 0.0286 0.0006 
  </code></pre>
  
  <p>How can I store the LD1 and LD2 proportion of trace in separate variables?</p>
  
  <p>Thanks</p>