I would like store certain values to a list and drop if certain variable's value is equivalent to those values in list. Here is the code that I am working on:
Could you please help me on this matter?
Code:
local files : dir "C:\Users\E.YILMAZ\Desktop\www.thingiverse.com\Strata_Data\splitted_data" files "*.dta" cd "C:\Users\splitted_data" list = [] foreach file in `files' { cd "C:\Users\splitted_data" use `file', clear for each x in list { drop if id == `x' } keep if over_threshold == 1 add_new_values_to_list save "new_`file'", replace }
Comment