;

attr(pd$ethnicity, &quot;label&quot;) &lt;- &quot;Ethnicity&quot;

attr(pd$ageAtInauguration, &quot;label&quot;) &lt;- &quot;Age at inauguration&quot;</code></pre>
<p>And lastly, we rerun the codebook:</p>
<pre class="r"><code>makeCodebook(pd, replace = TRUE)</code></pre>
<p>Thanks for reading! If you have questions or comments for these exercises, don’t hesitate to contact Anne Helby Petersen at [<a href="mailto:ahpe@sund.ku.dk">ahpe@sund.ku.dk</a>].</p>
</div>
</div>
</div>



</div>
</div>

</div>

