title: Converting Monthly Data to Daily in R
body: <p>I have a data.frame df that has monthly data:</p>
  
  <pre><code>Date           Value 
  2008-01-01      3.5          
  2008-02-01      9.5          
  2008-03-01      0.1          
  </code></pre>
  
  <p>I want there to be data on every day in the month (and I will assume Value does not change during each month) since I will be merging this into a different table that has monthly data.</p>
  
  <p>I want the output to look like this:</p>
  
  <pre><code>Date           Value 
  2008-01-02      3.5
  2008-01-03      3.5 
  2008-01-04      3.5 
  2008-01-05      3.5 
  2008-01-06      3.5 
  2008-01-07      3.5 
  2008-01-08      3.5 
  2008-01-09      3.5 
  2008-01-10      3.5 
  2008-01-11      3.5 
  2008-01-12      3.5 
  2008-01-13      3.5 
  2008-01-14      3.5 
  2008-01-15      3.5 
  2008-01-16      3.5 
  2008-01-17      3.5 
  2008-01-18      3.5 
  2008-01-19      3.5 
  2008-01-20      3.5 
  2008-01-21      3.5 
  2008-01-22      3.5 
  2008-01-23      3.5 
  2008-01-24      3.5
  2008-01-25      3.5 
  2008-01-26      3.5 
  2008-01-27      3.5 
  2008-01-28      3.5 
  2008-01-29      3.5 
  2008-01-30      3.5  
  2008-01-31      3.5        
  2008-02-01      9.5           
  </code></pre>
  
  <p>I have tried <code>to.daily</code> but my call:</p>
  
  <p><code>df &lt;- to.daily(df$Date)</code> </p>
  
  <p>returns </p>
  
  <p><code>Error in to.period(x, "days", name = name, ...) : ‘x’ contains no data</code></p>