 class="kw">else</span><span class="op">{</span><span class="va">cost.drug.ref</span> <span class="op">+</span> <span class="va">cost.ae.ref</span><span class="op">}</span>,</span>
<span>                                  <span class="st">"curtime"</span><span class="op">=</span><span class="cn">Inf</span><span class="op">)</span><span class="op">)</span> </span>
<span>               <span class="op">}</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.htm