Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Separating data into multiple text files

Hello there,

When I download data from jatos, it concatenates all data into a single text file. I wonder what is the best practice to get individual data from these? My data is saved as json, so ideally I would want individual text file per participant. I have been downloading each file separately on jatos, but now as my sample size increases, that method will no longer be feasible.

Please let me know what's the best approach!

Comments

  • krikri
    edited July 2021

    Hi!

    JATOS exports the result data into a text file where each line is a separate result. So what you have to do is split this file by lines.

    I'm not familiar with Matlab or R, but I was told that if you read the results with jsonlab (Matlab) or rjson (R), each toolbox/package will let you split the files.

    Or you use your terminal. Which OS are you using? E.g. on Linux you can split a file along it's lines with

    split -l 1 inputfile
    

    Best

    Kristian

Sign In or Register to comment.