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
how can i comment the coefficient between latent variable and outcome (categorical 0,1)how can i comment the coefficient between latent variable and outcome (categorical 0,1) such as this…
-oaxaca- not correctly calculating the difference between groupsHi, I am using the -oaxaca- command and appear to have errors in my results. I am calculating the de…
Analyze survey data with gsemHi all, I would like to analyze a two-period survey data from an impact evaluation. Dependent and i…
Dear all, need some advice on xtreg in stataDear all, I'm writing my bachelor thesis this semester and I'm interested in studying income inequal…
Working with weekly*dataHello, I'm sure this problem will appear simple, but I have not found my way out of it. I'm having…
Subscribe to:
Post Comments (Atom)
0 Response to Loop opening txt file and create a variable
Post a Comment