02-01 12
#&gt; 12 2017-03-01 12
#&gt; 13 2017-04-01 16</div><div class='input'>
<span class='co'># or fill all y with 0</span>
<span class='no'>month_df</span> <span class='kw'>%&gt;%</span> <span class='no'>pad</span> <span class='kw'>%&gt;%</span> <span class='fu'><a href='fill_by_value.html'>fill_by_value</a></span>(<span class='no'>y</span>)</div><div class='output co'>#&gt; <span class='message'>pad applied on the interval: month</span></div><div class='output co'>#&gt;         month  y
#&gt; 1  2016-0