Column value is based dominate element of topic vector
Mar 4, 2017 11:30 PM(4033 views)
I've used the text analysis tool and saved off a topic vector to my dataset. This shows up as 10 new columns labeled Topic1 through Topic10. I want a new column called "dominant topic" which is labeled topic 1-10 based based on which of the previous 10 columns had the largest value. What's the easiest way to do this? I suppose I could write a large formula, but I'm hoping someone knows an easier way.
Wow! That's very cool code. I didn't even know that functionality existed, but that totally worked. I'm now going to use this as a template for other things as well. Thank you very much. You've not only help me with this problem, but you've opened up a new world of jmp functionality to me.