Export variable names

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
oliverscottcurry
Posts: 5
Joined: Fri Jul 09, 2021 9:22 am
Location: UK
Contact:

Export variable names

Post by oliverscottcurry »

Is there a way of exporting a list of variable names & descriptions? Perhaps using a line of r code??
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Export variable names

Post by jonathon »

could you elaborate what you mean?

with thanks
oliverscottcurry
Posts: 5
Joined: Fri Jul 09, 2021 9:22 am
Location: UK
Contact:

Re: Export variable names

Post by oliverscottcurry »

Sorry for the delay! I mean, from the Variables tab/display, is it possible to export variable Names and Descriptions? For example, into a csv file, code book or readme.txt?
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Export variable names

Post by jonathon »

the .csv file format only supports a single line for column headings, so it wouldn't be possible.

unless you mean a .csv file where the descriptions are themselves "the data".

if you use the rj editor, the descriptions are attached to each column in a `jmv-description` attribute.

you could assemble these into a data frame, and then use the write.csv() function to write them to a file.

cheers
Post Reply