Yeah, that's work,this is great ! :)
I understand how it work, it's a nice trick.
Thanks !
But it doesn't create a another variable with the new modalities though.
My first goal would be to obtain a output like this :
Variable y :
français
Français
NA
NA
français
Others
Français
NA
Others
And so on
I just realise that's my request wasn't right in my first post, sorry :/
I don't want the count, I just want to replace "Français" by "Français", "NA" by "NA" and all the other modalities by "Others" in my variable y.
Sorry for the misunderstanding :/
I understand how it work, it's a nice trick.
Thanks !
But it doesn't create a another variable with the new modalities though.
My first goal would be to obtain a output like this :
Variable y :
français
Français
NA
NA
français
Others
Français
NA
Others
And so on
I just realise that's my request wasn't right in my first post, sorry :/
I don't want the count, I just want to replace "Français" by "Français", "NA" by "NA" and all the other modalities by "Others" in my variable y.
Sorry for the misunderstanding :/