I am working on a module that will create simulated data and then send that to the spreadsheet. It's mainly working, but one feature is escaping me. When I check the Output option, the new variables overwrite whatever has been produced so far. What I am hoping for is to have the new data appended as new variables in addition to any produced already.
In case it helps, here is the code I currently have (which may itself not be right):
Code: Select all
self$results$sendValues$set(keys=1:3,titles=c(IV$name,IV2$name,DV$name),
descriptions=c("IV","IV2","DV"),measureTypes=c(m1,m2,m3)
)
# m1, m2, m3 are either "nominal" or "continuous"
self$results$sendValues$setValues(index=1,iv)
self$results$sendValues$setValues(index=2,iv2)
self$results$sendValues$setValues(index=3,dv)
# iv,iv2,dv are vectors of either numerical values or character strings
Code: Select all
- name: sendValues
title: send to Jamovi
type: Output
Code: Select all
- name: sendValues
type: Output
measureType: nominal
varTitle: Braw