Sorry if my typing is confusing, could i generate a new variable from counting the amount of words in a certain variable? For example, i have a variable in string that contains of what's everyone favorite's colours, some data has 2 colors or more, and i want to generate a variable where it's a binary variable with 0 for one favorite colors and 1 to data that has more than one favorite colors.
-
Login or Register
- Log in with