Getting data from RJeditor back to the jamovi dataset

Everything related to the development of modules in jamovi

by Shabd » Thu Dec 13, 2018 9:27 pm

I love the RJ editor feature very much (you guys are doing a great job!), but I have one important question related to it:

It seems currently impossible to get data that was created in the RJeditor "system R sandbox" back to the Jamovi dataset. E.g. if i do:
data <-cbind(data, new_column)
...and then do:
descriptives (data)
... I can see the newly created column in the output, however, the new column is not appearing in the jamovi spreadsheet and hence cannot be saved with it.

Am I right that this is still impossible right now?
And if so, do you have a quick workaround how to make this work?

Such a function would be useful since I plan to do a simple statistic course with jamovi. Students will have no idea of R but in one course module might want to use some R-packages with functions that jamovi does not provide (like, e,g, poLCA) and take the generated data (e.g. class assignment) "back to jamovi" in order to do simple analyses with it there.
Any idea to achieve this in a very easy way?

Thanks a lot in advance, cheers,
Posts: 1
Joined: Thu Dec 13, 2018 9:17 pm

by jonathon » Thu Dec 13, 2018 10:51 pm

hi shabd,

you're right, this is a limitation of jamovi (and Rj) at this time.

as a work around, you can generate a stream of text values, and paste them into a column in jamovi:

Screen Shot 2018-12-14 at 09.49.09.png
Screen Shot 2018-12-14 at 09.49.09.png (225.25 KiB) Viewed 948 times

what you copy/paste from the results (i notice) starts with a blank line, and pasting this doesn't work, so you have to paste the values into something like notepad, *then* copy all the values (skipping the first line), before you can paste those into a column in jamovi.

i'll fix this issue shortly.

User avatar
Posts: 1324
Joined: Fri Jan 27, 2017 10:04 am

Return to Module development