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
How to create new variable X=1, if Y=1 in the 24 cells (A1:A24), and X=0, if in the 24 cells (A1:A24) =0Dear all, Y is a dummy variable (1 - crises occur, 0 - crises). I have to crate a new variable X, t…
FE and robust standard errosHi, I am doing a project with panel data. I read online that "If the error terms are correlated, t…
Converting datetimeranges to multiple calender date variablesHi I had some problems describing the problem nicely, however I think this explanation will make it …
How i do Regressions using dummy variableHow I write a code for Regressions using dummy variable, cross sectional regression Array …
update on xtheckmanfeDear all, Thanks to Prof. Baum, a new version of xtheckmanfe is now available. This command estimate…
Subscribe to:
Post Comments (Atom)
0 Response to How to Save a File After a String Value
Post a Comment