al is determined individualle for each group</span>
<span class='no'>x</span> <span class='kw'>%&gt;%</span> <span class='fu'><a href='https://dplyr.tidyverse.org/reference/group_by.html'>group_by</a></span>(<span class='no'>id</span>) <span class='kw'>%&gt;%</span> <span class='fu'><a href='https://dplyr.tidyverse.org/reference/do.html'>do</a></span>(<span class='fu'>pad</span>(<span class='no'>.</span>))</div><div class='output co'>#&gt; <span class='message'>pad applied on the interval: 2 month</span></d