class="r-out co"><span class="r-pr">#&gt;</span> [1] "charlson_icd10_quan"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> attr(,"weights")</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "charlson"</span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Elixhauser score based on ICD-10 diagnostic codes:</span></span></span>
<span class="r-in"><span><span class="va">x2</span> <span class="op">&lt;-</span> <span class="fu"><a href="comorbidit