I have two folders with exactly similar file names inside them. I would like for these files to be appended with each other.
For example, interview__33 from Folder v2 should be appended with interview__33 from Folder v3.
I used this codes:
global v3 "C:\Users\lm2\Desktop\Raw Files\20190816"
global v2 "C:\Users\lm2\Desktop\Raw Files\v2"
global temp ""C:\Users\lm2\Desktop\Raw Files\20190816\temp"
cd "$v2"
local dta: dir . files "*.dta"
foreach f of local dta {
use "`f'", clear
append using "$v3\`f'"
save "$temp\`f'", replace
}
The error is: r(601);
File C:\Users\lm2\Desktop\Raw Files\20190816 not found
Related Posts with Appending Files with Similar Name but From Different Folder
Using mixed model after coarsened exact matching (CEM)I am using coarsened exact matching (CEM) to match my treatment-control groups. As a result, the mat…
lnsur nonlinear parameter restrictionI want to estimate a system of equations, imposing that one coefficient of the first equation equal …
nlsur nonlinear parameter constraintsI want to estimate a system of equations, imposing that one coefficient of the first equation equal …
Heckman Process with Multinomial LogitHi, I am looking to estimate a multinomial logit model with sample selection. The selection equatio…
PPML Prediction, Dependent Variable on Both SidesHi all, I'm using a gravity model to predict migration through PPML. The dependent variable is Migr…
Subscribe to:
Post Comments (Atom)
0 Response to Appending Files with Similar Name but From Different Folder
Post a Comment