Header = TRUE problem - solved


#1

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?


#2

Got it. In case someone has the same confusion.


#3

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.