title: Attributes of GLMNET Library in R
body: <p>I was using the glmnet package in R, and I saved my input x, as a csv file. Its dimensions are: 34 by 8.I saved the output variable y as another csv file, and its dimensions were: 34 by 1</p>
  
  <p>Code: x &lt;- read.csv("input.csv")
        y &lt;- read.csv("output.csv")</p>
  
  <pre><code>  model = glmnet(x,y)
  </code></pre>
  
  <p>This shows the following error:
  Error in weighted.mean.default(y, weights) : 
    'x' and 'w' must have the same length</p>
  
  <p>I even tried: as.numeric(unlist(y)), to make sure y is a vector, but it doesn't seem to work. 
  Can someone please tell me the error in my format for the attributes?</p>