I have a couple of survey datasets that I am loading into Mathematica to do behavioral clustering.
I have columns of responses (Strings) where the users was given a fixed set of responses. The surveys are really high dimensions so I can't manually go through every question type and assign a value to each string in each one of these columns.
Is there a way I could encode the responses into numbers and do this for each column that has categorical responses like this?
For each column that looks like this food["apple","pear","apple","orange","pizza","pizza"] and convert it to food[1,2,1,3,4,4]
Comments
Post a Comment