[R] See the numeric codes of a factor

Angel Rodriguez angel.rodriguez at matiainstituto.net
Fri Sep 19 12:53:16 CEST 2014

Dear Subscribers,
I want to label a numeric variable 0="Bad" /1="Good". I understand the only way is to transform it into a factor variable. 
Is there a way to check that the numeric values of the new factor variable are 0 and 1 and not 1 and 2?
Thank you very much.
Angel Rodriguez-Laso

	[[alternative HTML version deleted]]

More information about the R-help mailing list