title: How to extract values from an object in R
body: <p>I have recorded values at different moments and had a linear interpolation done within those points using the approx() function. I got the predicted values in the "model 1" object (please see the script below), but I couldn't find out how to extract those x,y predicted values from the object. Any help will be really appreciated. </p>
  
  <p>Here is the script.</p>
  
  <pre><code>x &lt;- c(7,56,64,71,84,92,98,106,118,140,148) # observed data
  y &lt;-c(0,1,1,1,1,1,1,1,0.891038658,0.727258549,0) # observed data
  
  
  par(mfrow = c(1,1))
  plot(x, y, main = "approx(.)")
  points(approx(x, y, method = "linear"), col = 4, pch = "*")
  Model1&lt;-approx(x, y, method="linear", xout=7:148, yleft=0, yright=0, rule =    1, f = 0, ties = mean)
  </code></pre>
  
  <p>Thanks in advance,</p>
  
  <p>Jose</p>