Header = TRUE problem - solved

I am very new to R, and

I was practicing to import a .txt file to R (using an example on the book I read), and I used header = TRUE.
I was trying to convert the variable 'job' into a factor variable, however, R seems not knowing the first row are names of the variables.

Here is the error message I received, can anyone help me please?

Got it. In case someone has the same confusion.

Hi,

nice to know that you solved your problem ! And nice of you to have indicated it in the title.
Know that you have a way to mark your question as solved properly without modifying the title thanks to discuss functionality. Doing that will mark the question as solved in the list of question.