Object not found- but it is a column in a data set

PRace doesn't exist as an independent object it is a column from a data frame so you have to reference it the same way you are referencing other columns.

Elem500_G3_2_$PRace

Note: Next time please provide a proper REPRoducible EXample (reprex) illustrating your issue.