[R] Creating dummy variable using ifelse statement while you also retain NA's

Olu Ola oluola2011 at yahoo.com
Wed Aug 17 20:24:45 CEST 2016


 Hello,I am trying to create a dummy variable using the ifelse statement. However, the ifelse statement does not recognize na.rm = True.
How can I create a dummy variable so that it still retains the missing data denoted as "NA" ?
Regards
	[[alternative HTML version deleted]]



More information about the R-help mailing list