Dear Statalisters,
I'm quite new to Stata and I've run into what seems like a very "basic" problem. I would like to export my dataset from Stata to a csv file, but instead of having variable names on the first row, I need to have variable labels. I know that this is possible for exporting to excel with the code below, but for creating text files this option doesn't seem to exist. Am I missing something here? Is there any easy way to "go around" this? Of course the excel file can then be saved as a csv file, but I'm trying to avoid any additional steps here.
export excel using "test.xlsx", firstrow(varlabels)
Thank you in advance!
Best regards,
Elina
Related Posts with Is it possible to "export delimited" with variable labels instead of variable names?
Functional data analysis for analysis of continuous glucose data (i.e. over days) in StataHello Stata colleagues, I have some continuous glucose data in participants who completed cross-ove…
Assigning random number from list to regression stored nameHello, I want to run several regressions and store them. The name should contain a number randomly …
How to find 2 consecutive values for a dataset with repeated observationsHello, I have the following data below with id, result and results-date. I would like to tag by id …
Marginsplot with countriesHello all, This is just an example: I do a logit-comman like for instance "logit salary gender" whe…
Graphing multiple variables in a single map using SPMAPDeal all, I am using Stata 15. I have a cross section data-set for year 2015 with crop yields for fo…
Subscribe to:
Post Comments (Atom)
0 Response to Is it possible to "export delimited" with variable labels instead of variable names?
Post a Comment