Page 1 of 1

Export variable names

Posted: Fri Jul 09, 2021 9:27 am
by oliverscottcurry
Is there a way of exporting a list of variable names & descriptions? Perhaps using a line of r code??

Re: Export variable names

Posted: Sat Jul 10, 2021 12:44 am
by jonathon
could you elaborate what you mean?

with thanks

Re: Export variable names

Posted: Wed Jun 14, 2023 4:42 pm
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?

Re: Export variable names

Posted: Wed Jun 14, 2023 11:59 pm
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