Hello. This should be rather easy for folks here, but I am stymied.
I have a rather simple dataset; 4 columns, 1 row:
county state fips year
1 Alachua_County FL 12001 2015
I am wanting to save this file using the contents within county[1], i.e., "Alachua_County." I am using the following commands:
local county "county[1]"
di `county'
save "C:/.../`county'.dta", replace
However, this does not work. What I get is a file saved as county[1].dta. What I am wanting is a file saved as Alachua_County.dta.
Thanks in advance for your assistance.
Related Posts with How to Save a File After a String Value
Regression with year and country fixed effectsHi there, First of all I am new to this forum and I've been trying to find a relatable post but was…
Pearson correlation matrix with multiple significance starsHi Statalisters, I'm trying to present Pearson's correlation matrix with significance stars at leve…
Percentage in bar graphHello everyone. I am trying to create a bar chart which evaluates the labor market participation by…
Principal Component AnalysisHello, I am carrying out a Principal Component Analysis on a rather large dataset (6500 observation…
how to make a descriptive statistics like the picture (including Jarque‐Bera test for normality) and output the result"sum,de" did not include Jarque‐Bera test for normality, and how to use the panel data to achieve th…
Subscribe to:
Post Comments (Atom)
0 Response to How to Save a File After a String Value
Post a Comment