pan><span class='fl'>5</span><span class='op'>]</span>,
                 stringsAsFactors <span class='op'>=</span> <span class='cn'>FALSE</span><span class='op'>)</span>

<span class='fu'>check_dm_actarm_arm</span><span class='op'>(</span><span class='va'>DM</span><span class='op'>)</span>
</div><div class='output co'>#&gt; [1] FALSE
#&gt; attr(,"msg")
#&gt; [1] "DM has entries where ARM != ACTARM. "
#&gt; attr(,"data")
#&gt;   USUBJID ARM ACTARM
#&gt; 1       4   e      d
#&gt; 2       5   f      e</div><