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
Help on ICC / dice scoreDear Stata community, I have some data for which I want to calculate intraclass correlation coeffic…
Multiple comparisonsHi everyone, I am working on minor revision of a manuscript and I have been asked to correct for mu…
Dropping all Observations in a Longitudinal Data Set if Two Conditions are met.Hi Stata users, I am trying to drop entire records of individuals from this set if they had an oppo…
Dynamic binary panel models with endogeneityHi all, I have a question related to dynamic panel analysis. As we know, xtabond2 is suitable to u…
Aggregate data based on two variablesHello Stata Community, I am new to Stata and have a question regarding the aggregation of a dataset…
Subscribe to:
Post Comments (Atom)
0 Response to Appending Assistance
Post a Comment