Assume that in a folder with thousands of files, there are some that have completely missing information. They only contain variable names. See the example below.
file1.dta
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(var1 var2 var3) 12 10 9 5 6 9 end
file2.dta does not have any data apart from the variable names (var1 var2 var3). No lines with data whatsoever.
I am wondering whether there is a way to pin down the completely empty files and put them away (e.g., in another folder or subfolder) or even delete them.
Thanks in advance.
0 Response to Identifying datasets with completely missing rows while working with many files in a folder
Post a Comment