I am a beginner in R programming. In the dataset that I want to work, there are 3 categorical variables that I want to convert into (0's and 1's).
This is how I tried to do it, but it didn't change anything?
A = mydata$industry
A[which(A=="yes")] = 1
A[which(A=="no")] = 0
Thanks in advance for the help.