title: How to extract values from survfit object
body: <p>I've created this model:</p>
  
  <pre><code>model &lt;- survfit(Surv(time,status)~c$sex)
  model
  </code></pre>
  
  <p>and the output is:</p>
  
  <pre><code>Call: survfit(formula = Surv(time, status) ~ c$sex)
  
               records n.max n.start events median 0.95LCL 0.95UCL
  c$sex=female      15    15      15      8    720     517      NA
  c$sex=male        28    28      28     23    234     145     712    
  </code></pre>
  
  <p>So, I want to extract the median for males and the same for females, but have no idea how to do it.
  Here are my attempts to do it:</p>
  
  <pre><code>&gt;model$median
  NULL
  
  &gt;summary(model)$table[, "median"]
  c$sex=female c$sex=male 
         720.0            234.5 
  </code></pre>
  
  <p>I want each one of the values alone ("720" and "234.5"), can somebody help me?</p>
  
  <p>Thanks in advance</p>