I have a directory of subdirectories corresponding to months/ years with each subdirectory named (subyymm, ex: sub1712). I have subdirectories for each month from sub1712 - sub1812. Within each subdirectory is a .txt file called "sub_data.txt', and this is consistent across all subdirectories. I was wondering would would be a quick way to loop through each subdirectory and append all 13 sub_data.txt files together? Right now I append one at a time, and this seems inefficient.
Thank you!
Related Posts with Looping through specific files in multiple subdirectories?
What contributed to the discrepancies in mini dataset (extracted from raw data) versus the original data?Hi Stata experts, I am working on a modified dataset including only one variable and 18 observation…
merging errors m:1I have an odd problem merging two files based on state variables, called est_st. In both data sets, …
Help with time series data analysisHello all, Statistics novice here trying to find the best test to use for my data. I am currently lo…
Collect System Selectively Store ResultsI'm wondering whether there is a way to truncate the results that Stata 17's new collection system s…
graph dotHi all, I want to use a "dot graph" to show the percentage statistical characteristic of my data. b…
Subscribe to:
Post Comments (Atom)
0 Response to Looping through specific files in multiple subdirectories?
Post a Comment