makexu93
5/17/2019 - 2:14 PM

Condition statement in R ifelse()

mydata$is_USA <- ifelse(mydata$Country == "USA",1,0)