title: How do I replace NA values with specific values in an R?
body: <p>I have a time series dataframe. </p>
  
  <p>But that data contains NA like this: </p>
  
  <pre><code>           KQ11.Open KQ11.High KQ11.Low KQ11.Close KQ11.Volume KQ11.Adjusted
  2017-04-05    627.89    630.17   626.94     630.17      923700  630.17
  2017-04-06    630.59    630.59   625.20     630.46      873400  630.46
  2017-04-07    632.16    633.49   629.61     633.32      833200  633.32
  2017-04-10    633.24    633.24   617.16     619.41      865600  619.41
  2017-04-11    620.25    625.18   614.21     621.64      813400  622.64
  2017-04-12    622.54    622.73   619.27     621.45      695600  621.45
  2017-04-13    622.49    624.15   622.38     623.87      742500  623.87
  2017-04-14        NA        NA       NA         NA          NA    NA
  </code></pre>
  
  <p>I want to change Na values to 618.24 618.24 618.24 618.24 742500 618.24</p>
  
  <p>How can I change it? </p>
  
  <pre><code>library(quantmod)
  today &lt;- Sys.Date()
  kq &lt;- getSymbols("^kq11", from = today-100, to = today, auto.assign = F)
  kq
  </code></pre>