Page 1 of 1

changes in column names through Rjeditor not considered within jamovi

Posted: Thu Dec 15, 2022 5:51 am
by superyms
When I try to change the space " " in the colnames in Rjeditor it seems to work there using :
colnames(data) <- gsub(" ", "_", colnames(data))

However it is not considered in jamovi, the names used still have a space and not a "_".
I tried to export it, however, it is not included too.

It would be nice to see the changes when we work on column names (or names) within the Rjeditor directly in jamovi.

Is there another solution? (to obtain that change in the column names within jamovi?)

Thanks.

Re: changes in column names through Rjeditor not considered within jamovi

Posted: Thu Dec 15, 2022 5:59 am
by jonathon
hi,

Rj Editor cannot rename columns, however if you use the Rj Editor+, you can create new columns with new names.

another solution might be to changes the names in data, and then write that to a .csv file. then open that .csv file in jamovi.

jonathon

Re: changes in column names through Rjeditor not considered within jamovi

Posted: Thu Dec 15, 2022 5:54 pm
by MAgojam
Hey @superyms,
as Jth wrote, with Rj editor +, you can do cool stuff and make it available in the sheet for other analysis in jamovi, like the small example in the screenshot:
Rj_editor_plus.png
Rj_editor_plus.png (163.16 KiB) Viewed 6514 times
If you want to move around the jamovi file, you might also be interested in taking a look here:
https://github.com/sjentsch/jmvReadWrite

Where do you find the jmvReadWrite R package written by Sebastian Jentschke of Team jamovi.
Personally I find it very interesting and useful.

Cheers,
Maurizio

Re: changes in column names through Rjeditor not considered within jamovi

Posted: Sat Dec 17, 2022 8:04 am
by superyms
Thank you both for your answer.
I will give it a try!

MAgojam, your explanation is clear, I also thank yo for sharing about the jmvReadWrite R package.

Best,

Re: changes in column names through Rjeditor not considered within jamovi

Posted: Sat Dec 17, 2022 2:03 pm
by superyms
MAgojam,

I tried to use Rjeditor+, however, it is still not working! (I still have the same result, only working within the Rjeditor+ and not changed in jamovi).
I do not understand how you proceed to obtain such a result.

Please let me know step by step.

Re: changes in column names through Rjeditor not considered within jamovi

Posted: Mon Dec 19, 2022 10:41 pm
by MAgojam
Hey @superyms,
might you be interested in taking a look at the attached .omv file?
Rj_iris_dist-mahalanobis_outliers.omv
(4.97 KiB) Downloaded 561 times

Cheers,
Maurizio

Re: changes in column names through Rjeditor not considered within jamovi

Posted: Tue Dec 20, 2022 8:42 am
by superyms
Hey @MAgojam,

Thank you. I will take a look and come back to you!

Best,