title: How to get forecast using `stlf()` in R
body: <p>I am new to <strong>R</strong>. I am using the <code>stlf()</code> function in the <strong>forecast</strong> package to forecast trends in air passengers using the following code:</p>
  
  <pre><code>fit &lt;- stlf(AirPassengers, lambda=BoxCox.lambda(AirPassengers))
  </code></pre>
  
  <p>My questions:</p>
  
  <ol>
  <li>Does the point forecast given by this method correspond to the input data or is it a future forecast?</li>
  <li>How can I specify the number of forecast periods?</li>
  </ol>