title: Saving glm object in R
body: <p>I am trying to save a glm object in R, but when I reload the file, I get a character vector with the name of the object I am trying to save.</p>
  
  <pre><code>&gt;model = glm(X1 ~ ., family = binomial(link = 'logit'), data = datamatrix) 
  &gt;save(model, file = 'savedmodel')
  &gt;
  &gt;savedmodel = load('savedmodel')
  &gt;savedmodel
  [1] "model"    
  </code></pre>