title: Viewing an object produced by `glm` as a list in R
body: <p>In R, the regression function <code>glm</code> produces an object of class <code>glm</code> which is a list. </p>
  
  <p>As it is a list, I should be able to view an object of class <code>glm</code> as list without any formatting going on. However, <code>as.list</code> doesn't seem to do this.</p>
  
  <p>For example, if <code>fit</code> is a model fitted by the function <code>glm</code>:</p>
  
  <pre><code>&gt; as.list(fit)
  
  Call:  glm(formula = V4 ~ V3 + V2 + V1, family = Gamma, data = data)
  
  Coefficients:
  (Intercept)           V3           V2           V1  
        1.349        1.593        1.577        1.127  
  
  Degrees of Freedom: 9999 Total (i.e. Null);  9996 Residual
  Null Deviance:      2137 
  Residual Deviance: 2048         AIC: -30180
  </code></pre>
  
  <p>On the other hand, other functions that apply to list work correctly, such as <code>names</code> which will produce the 30 names of the associated list.</p>
  
  <p>Also, I can view individual elements in the same manner that I would for any other list:</p>
  
  <pre><code>&gt; fit$coefficients
  (Intercept)          V3          V2          V1 
     1.349282    1.593067    1.576868    1.127067 
  </code></pre>
  
  <p>Is there any pre-existing function that will allow me to view <code>fit</code> in its list form without formatting?</p>
  
  <p>As I said above, I could build my own function using the names of the list, but that seems unnecessary for such a simple task.</p>