Here is my question: I have a factor type variable composed of three levels 'NON','Oui' and 'OUI'. So when I write the variable on the console, I get these results:
fac
[1] NON
Levels: NON Oui OUI
My question is if there is a way to get the NON in front of the [1] without getting the factor levels. In other words, i want to store NON (which is the output of 'fac') in another variable without taking the levels line .
SOLVED: Thank you all. I wanted to store the output in a variable and the solution was to use as.character(fac)
as.character(fac)