Hi all,
I have a series of txt file stored in a folder.
I would love to do the following (ideally via loop):
1-Open each file
2-Create a variable with same name as the file title (so it will identify the file)
3-Stored all the files in dta within the folder.
Finally, I would love to append all dta file so to have a one single dataset.
Many thanks for any advice you might have!
Related Posts with Loop opening txt file and create a variable
Can I determine the effect of an independent variable in general, if I run a logit using extreme cases? Hello, I am working on political professionalization. Precisely on the effect of country size on …
Newbie question - Understanding the bysort command, theoreticallyHi! I am new to this forum, have read the relevant FAQs, browsed through the forum, looked at STATA …
generating new paneidHello, I am doing a panelregression with industry and year FE Is it possible to create a new paneli…
Analysis by Groupinput double(YBIRTH SEX CLINICALVAR) float(age CONDITION Group) 2002 1 5 18 1 1 2002 2 5 18 1 1 2002…
3SLS and instruments for HRS endogenous regressorDear all, I want to analyse spillover health effects among spouses following the decision to provid…
Subscribe to:
Post Comments (Atom)
0 Response to Loop opening txt file and create a variable
Post a Comment