title: creation of a variable in a R dataset based on two vectors
body: <p>I have made a polynomial model from 2 vectors:</p>
  
  <pre><code>tint &lt;- c(12, 18.8, 25.5, 21.6)
  text &lt;- c(11.4, 17.1, 22.1, 14.0)
  dT &lt;- tint - text
  
  func.dT2 &lt;- lm(dT[1:3] ~ poly(text[1:3],2,raw=TRUE) )
  </code></pre>
  
  <p>now, i'd like to use that model to predict dT from other variavbels, whose number is much larger than 3:</p>
  
  <pre><code>predict(func.dT2, text=seq(min(text)-1, max(text)+1, 0.01))
  </code></pre>
  
  <p>but I only get the first three values.</p>
  
  <p>how can I use func.dT2 to calculate dT from all the values in seq(min(text)-1, max(text)+1, 0.01) ?</p>
  
  <p>thanks!</p>