="r-in"><span><span class="co"># Then, we calculate the Quan-ICD10 Charlson score:</span></span></span>
<span class="r-in"><span><span class="va">ccF</span> <span class="op">&lt;-</span> <span class="fu"><a href="comorbidity.html">comorbidity</a></span><span class="op">(</span>x <span class="op">=</span> <span class="va">x3</span>, id <span class="op">=</span> <span class="st">"id"</span>, code <span class="op">=</span> <span class="st">"code"</span>, map <span class="op">=</span> <span class="st">"charlson