e <span class="op">=</span> <span class="fu"><a href="sample_diag.html">sample_diag</a></span><span class="op">(</span><span class="fl">200</span><span class="op">)</span>,</span></span>
<span class="r-in"><span>  stringsAsFactors <span class="op">=</span> <span class="cn">FALSE</span></span></span>
<span class="r-in"><span><span class="op">)</span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Charlson score based on ICD-10 diagnostic codes:</span></span>