



Hi everyone, I have a data frame Gene with SNPs eg.   P1 P2 P3 
 CG CG GG
-- --  AC 
 -- AC CC
AC  --  AC I tried to replace all the GG with a value 3.    Gene[Gene=="GG"]<-3 It always give me:  Warning in `[<-.factor`(`*tmp*`, thisvar, value = 3) :
  invalid factor level, NAs generated Does any know if there is anything wrong with my code? Thanks, Zhengyu 		 	   		  
	[[alternative HTML version deleted]]

