Hello,
I'm trying to append all the files in a folder together, and have the following code:
clear
local fnames: dir "$path\Data Input\Stata Sets" files "*.dta"
foreach file of local fnames {
append using "`file'", force
}
Unfortunately I keep getting an error that says r(601): Cannot find (filename) of the first filename in the folder. It was previously working, but has stopped working in the last couple times I've tried to run it.
Thanks, any help would be appreciated.
Related Posts with Appending Assistance
Finding stock beta with a forvalues loopI am performing an event study and am trying to estimate the beta of 60 different public companies d…
IPWRA and PSMATCH, how to choose..Hi all, I have a longitudinal dataset with individuals some of which received a treatment at some t…
reshapeHi, I am trying to reshape my data. Stata says that the data is currently wide. The current data is…
ivreghdfe cannot show first stage outcomeDear statalist, I am using ivreghdfe and want to know the regression in the first stage. However, s…
Exact matching command with panel data (diff-in-diff analysis)An example of my data set is the following: Code: +-----------------------------------…
Subscribe to:
Post Comments (Atom)
0 Response to Appending Assistance
Post a Comment