title: 'x' and 'w' must have same length - error in weighted.mean.default
body: <p>I am having a problem with the package <code>glmnet</code> in R. I am trying to use it off-the-shelf, and am getting the following problem:</p>
  
  <pre><code>test &lt;- glmnet(seq.trans,rsem.trans)
  </code></pre>
  
  <blockquote>
    <p>Error in weighted.mean.default(y, weights) :
          'x' and 'w' must have the same length</p>
  </blockquote>
  
  <p>But the inputs are the same size:</p>
  
  <pre><code>dim(seq.trans)
  # [1]    28 17763
  dim(rsem.trans)
  # [1]    28 17763
  </code></pre>
  
  <p>What is causing this error?</p>