title: How do I extract just the number from a named number (without the name)?
body: <p>I am looking for just the value of the <code>B1(newx)</code> linear model coefficient, not the name. I just want the 0.5 value. I do not want the name &quot;newx&quot;.</p>
  <pre><code>newx &lt;- c(0.5,1.5,2.5)
  
  newy &lt;- c(2,3,4)
  
  out &lt;- lm(newy ~ newx)
  </code></pre>
  <p><code>out</code> looks like:</p>
  <pre><code>Call:
  lm(formula = newy ~ newx)
  
  Coefficients:
  (Intercept)         newx  
         1.5         1.0  
  </code></pre>
  <p>I arrived here.  But now I am stuck.</p>
  <pre><code>out$coefficients[&quot;newx&quot;]
  
  newx 
   
  1.0 
  </code></pre>