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
box plot with a dummy variablehi, i want to use a box plot with a dummy variable like in the image. So in other words, i want to g…
Declare data to be time seriesDear STATA experts, I'm working on a Interrupted Time Series analysis. I have individual level da…
_cf mismatch on two datasets created by the same programHello, Why would it be the case that the same program (e.g. sales.do) used to generate the same dat…
Plugging values of a variable back into StataHi users. I am using a variable called activity status which comes in codes such 11, 12, 21, 31, 41,…
Predicted R-squaredAnyone know of a Stata command or user-written routine that generates the predicted R-squared after …
Subscribe to:
Post Comments (Atom)
0 Response to Loop opening txt file and create a variable
Post a Comment