Code:
*Identify what data we are working with daily vs cumulative data sets**
gen data_counter = _n
if data_counter >=100 {
cd "/Users/wchin/Desktop/dive-project.git/cycle/short db/Stata data_sets/master"
}
else{
cd "/Users/wchin/Desktop/dive-project.git/cycle/short db/Stata data_sets/daily"
}
0 Response to Changing directories based on a condition.
Post a Comment