importing sjlabelled labels from R to jamovi via .rdata

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
ukuvainik
Posts: 3
Joined: Fri Mar 28, 2025 12:58 pm

importing sjlabelled labels from R to jamovi via .rdata

Post by ukuvainik »

Hi!

I am preparing data in R for students who want to analyse the data in jamovi. To help them understand data, I have prepared labels along to variables with sjlabelled package.

When I save data with .rdata, and open the .rdata file in jamovi, the labels are not going to be found. However, when I export data from R to .sav with haven::write_sav() and then import the .sav file to jamovi, then I can see the labels.

My problem is that .sav files are 3x larger than .rdata files. Also, opening them seems less efficient. In my online machine that students use, .rdata files open in about 5 seconds, but .sav files take 1-2 minutes to open.

Is there are way to pass the variable labels to jamovi with .rdata?

Thanks

Uku
User avatar
jonathon
Posts: 2886
Joined: Fri Jan 27, 2017 10:04 am

Re: importing sjlabelled labels from R to jamovi via .rdata

Post by jonathon »

these are particularly large files? to open in 1-2 minutes? are they quicker to open on a different machine?

you couldn't just save them as .omv files? (the jmvReadWrite package may be of interest)

jonathon
ukuvainik
Posts: 3
Joined: Fri Mar 28, 2025 12:58 pm

Re: importing sjlabelled labels from R to jamovi via .rdata

Post by ukuvainik »

Hi!

Thank you for the .omv suggestion, that does the trick!

The data is 80k rows and 300 columns. I cannot test it elsewhere, protected data. But reading .omv is as fast as reading .rdata, about 20 seconds. .sav is 2-3 minutes. So in the end, .omv is the way!

Best,

Uku
Post Reply