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
Generating values in a variable through two other variables in the datasetHi! I need help to create the values in a variable automatically from two other variables. My data …
Building a panel dataset from individual level data using loopsHi guys, I am quite new to Stata and I can't find a solution to the following problem: I am workin…
Box plot - Only lable Most extreme outliersDear Statalists, after going through several tutorials and information about box plots in Stata, I …
Panel Date IV Regression, Fixed EffectsHello! I am running an IV Fixed Effects Regression with Panel Data. I have t=4 (1995-1998), N=550 d…
xtivreg2 with interaction between categorical var and continuous var.Dear Stata users, I am trying to analyze IV regression but xtivreg2 does not support interaction. …
Subscribe to:
Post Comments (Atom)
0 Response to Appending Assistance
Post a Comment