Insheet Using Relative File Name in Stata? (Or Wildcard in Filename?) -
i curious , have not been able find answer question.
is there way use wildcard in filename in stata when using insheet command?
for example, have .do file use once month. name of file change every month(will include date) have 1 part stay consistent(mmddyyyy_data.csv / data.csv stays consistent).
i haven't had luck using insheet using "./*data.csv" there way achieve this?
thanks!
i think not work because insheet wants 1 dataset , wildcard allow return more one.
if you're there 1 file of type maybe can use this:
local file : dir . files "*data.csv" insheet using `file'
Comments
Post a Comment