Add additional information to data sheet

Hello,

I am trying to add additional data to the data output file. I currently have wordlists which are made with code. Each wordlist then has an identifier for each word. For example my list of positive words are structured as so:
positive = [[‘Relaxed’,‘p’],[‘Compliment’,‘p’]] etc.

They’re then shuffled together and added into a list just called “words”. I am using this code thisExp.addData(‘WordsSpec’,words[Specific.thisN][0]) to save the words to the data file. Is there a way that I can also get the ‘p’ to save as well? As this would make classifying the words easier, and then make analysis quicker.

Thank you

Add

thisExp.addData('WordsVal',words[Specific.thisN][1])
1 Like

That’s got it!
Thanks for the help.