On 13. Aug 2018, at 2:58 PM, Lara Bridge <Lara....@mrc-cbu.cam.ac.uk> wrote:Hello,I was wondering whether it is possible to export the online results from Jatos into individual text files (1 text file per participant)? I can only see how to ‘export all’ –but this gives me one text file with all the data, which isn’t compatible with the R scripts that I currently have. The only way I have found how to do it is to download each participants data individually, but this is quite slow and prone to error. Any suggestions?Thanks in advance,Lara_________________________________
Lara Bridge | Research AssistantMRC Cognition and Brain Sciences UnitUniversity of Cambridge01223 273689
out <- readLines("./results_all.txt")
list1 <- as.list("","")for (i in 1:length(out)) {if (!(out[i] == "")) {list1[i] = out[i]}}list1[sapply(list1, is.null)] <- NULL
no.of.components = 4no.of.participants = length(list1)/no.of.components( transform component 1 (subject_id) )list2 <- rbind(fromJSON(list1[[1]]),fromJSON(list1[[1 + no.of.components]]))for (i in 3:no.of.participants-1) {list2 <- rbind(list2,fromJSON(list1[[1 + no.of.components * i]]))}
list3 <- rbind(fromJSON(list1[[2]]),fromJSON(list1[[2 + no.of.components]]))for (i in 3:no.of.participants-1) {list3 <- rbind(list3,fromJSON(list1[[2 + no.of.components * i]]))}
--
You received this message because you are subscribed to the Google Groups "JATOS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jatos+un...@googlegroups.com.
To post to this group, send email to ja...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jatos/da53a857-588a-4305-9eb9-5139a6df3f76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jatos/1EDA4637-9AF8-488E-B621-988413B0ED69%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jatos/616f5149-58cb-4614-859b-78fddcd7f5ef%40googlegroups.com.