search for: citizentyp

Displaying 1 result from an estimated 1 matches for "citizentyp".

Did you mean: citizentype
2009 Jul 01
1
conditional recoding a variable
I have a variable that identifies citizen type but some of my rows are blank. I want to replace the blank entries with the correct value which is conditional on another variable. In SAS, my conditional statement would be as follow: if citizenType="" and primarylanguage="English" then citizenType ="US citizen"; else citizenType=citizenType; When I try to duplicate this conditional statement in R I get the following error: Will you show me the correct syntax? social$CitizenType<-if(social$CitizenType=="...