[R] r syntax

2013-04-27 Thread sgs sys
Hi i want to recode Male =1 and female =2 in R what is the syntax for same ? thanks Sameer [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] Error in `contrasts-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) :

2013-04-27 Thread sgs sys
i am getting the following error Error in `contrasts-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels can any on e suggest how torectify [[alternative HTML version deleted]]