changes in column names through Rjeditor not considered within jamovi

Discuss the jamovi platform, possible improvements, etc.
Post Reply
User avatar
superyms
Posts: 23
Joined: Fri Sep 29, 2017 6:54 pm
Location: Algeria

changes in column names through Rjeditor not considered within jamovi

Post 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.
User avatar
jonathon
Posts: 2627
Joined: Fri Jan 27, 2017 10:04 am

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

Post 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
User avatar
MAgojam
Posts: 421
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

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

Post 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 1906 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
User avatar
superyms
Posts: 23
Joined: Fri Sep 29, 2017 6:54 pm
Location: Algeria

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

Post 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,
User avatar
superyms
Posts: 23
Joined: Fri Sep 29, 2017 6:54 pm
Location: Algeria

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

Post 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.
User avatar
MAgojam
Posts: 421
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

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

Post 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 164 times

Cheers,
Maurizio
User avatar
superyms
Posts: 23
Joined: Fri Sep 29, 2017 6:54 pm
Location: Algeria

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

Post by superyms »

Hey @MAgojam,

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

Best,
Post Reply