title: Trying to load my data for cv.glmnet
body: <p>I have txt file on which the results of a research are saved. </p>
  
  <p>I called it SPD this way:</p>
  
  <pre><code>SPD&lt;-read.table("C:\\Users\\Inhib\\OneDrive\\documents\\mydata.FromR.txt", header=TRUE)
  </code></pre>
  
  <p>when I write then <code>SPD</code> it presents all columns and everything is fine.</p>
  
  <p>Now, I want to perform elastic net analysis and I need lambda values, so I tried to use SPD in cv.glmnet for that using data(SPD) but it didn't work.</p>
  
  <p>Then I tried to create new data from SPD, doing this:</p>
  
  <pre><code>myvars &lt;- c("Age", "Uniqgenver","Elgenver", "Flowgenver", "Gender", "Resilience")
  newdata&lt;-SPD[myvars]
  newdata
  </code></pre>
  
  <p>When I do below, it doesn't work.</p>
  
  <pre><code>data(newdata) 
  </code></pre>
  
  <p>I really need to do lambda estimation using cv.glmnet or any other method, would be happy if anyone could explain me how to do it step by step using my file. </p>