pd$lastName == &quot;Arathornson&quot;),]

#We fix the following mistake:
#Trump has &quot;.&quot; listed as his first name (firstName).
pd[pd$lastName == &quot;Trump&quot;, &quot;firstName&quot;] &lt;- &quot;Donald&quot;

#We fix the following mistake:
#Obama&#39;s presidency duration is listed as infinite (presidencyYears).
pd[pd$lastName == &quot;Obama&quot;, &quot;presidencyYears&quot;] &lt;- 8

#We fix the following mistake:
#Trump&#39;s state of birth (New York) was spelled with a lower case &quot;y&q