importing csv data into inquisit script?


importing csv data into inquisit script?

Author
Message
elobot10
elobot10
Associate Member
Associate Member (149 reputation)Associate Member (149 reputation)Associate Member (149 reputation)Associate Member (149 reputation)Associate Member (149 reputation)Associate Member (149 reputation)Associate Member (149 reputation)Associate Member (149 reputation)Associate Member (149 reputation)

Group: Forum Members
Posts: 6, Visits: 37
Hello,

Is it possible to import data from a csv into an Inquisit script? We are running at two-part experiment on mTurk in which participants first fill out some questionnaires and then return at a later date to do a task. For the second part, we want to be able to give participants certain information based on our analysis of their performance on the first part, which will be stored in a csv along with their mTurk IDs. Is there any straightforward way of importing the info directly from the csv?

Many thanks!
Dave
Dave
Supreme Being
Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)

Group: Administrators
Posts: 9K, Visits: 38K
elobot10 - Monday, May 14, 2018
Hello,

Is it possible to import data from a csv into an Inquisit script? We are running at two-part experiment on mTurk in which participants first fill out some questionnaires and then return at a later date to do a task. For the second part, we want to be able to give participants certain information based on our analysis of their performance on the first part, which will be stored in a csv along with their mTurk IDs. Is there any straightforward way of importing the info directly from the csv?

Many thanks!

No, you cannot import from an CSV. Inquisit scripts can read in code from external files via <include> elements, however those files need to conform to standard Inquisit syntax.

seandr
seandr
Supreme Being
Supreme Being (68K reputation)Supreme Being (68K reputation)Supreme Being (68K reputation)Supreme Being (68K reputation)Supreme Being (68K reputation)Supreme Being (68K reputation)Supreme Being (68K reputation)Supreme Being (68K reputation)Supreme Being (68K reputation)

Group: Administrators
Posts: 1.2K, Visits: 922
Hello,
Although there isn't a way to import CSV data directly into an Inquisit script, you could fairly easily use a spreadsheet app such as Excel to automatically generate a text file from the CSV data that formats the data as Inquisit syntax for elements such as <values>, <item> or <list> depending on how you wish to use those data. You can then include the generated file using the <include> command. 

-Sean


Dave
Dave
Supreme Being
Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)

Group: Administrators
Posts: 9K, Visits: 38K
Dave - Monday, May 14, 2018
elobot10 - Monday, May 14, 2018
Hello,

Is it possible to import data from a csv into an Inquisit script? We are running at two-part experiment on mTurk in which participants first fill out some questionnaires and then return at a later date to do a task. For the second part, we want to be able to give participants certain information based on our analysis of their performance on the first part, which will be stored in a csv along with their mTurk IDs. Is there any straightforward way of importing the info directly from the csv?

Many thanks!

No, you cannot import from an CSV. Inquisit scripts can read in code from external files via <include> elements, however those files need to conform to standard Inquisit syntax.

This post may possibly of interest in this context, too: https://www.millisecond.com/forums/FindPost15778.aspx

GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search