Hi All,
I am now trying to use multiple file names into data.
clear
global f "D:\data_science\myr\raw\image"
*ssc install fs
local jpg : dir "$f" files "*.jpg"
di `jpg'
foreach name in `jpg' {
input x
`name'
end
}
When I do these codes, I got the error
. foreach name in `jpg' {
2.
. input x
3. `name'
4. end
--Break--
r(1);
Related Posts with using input in stata for file name
kountry commandHi all, I'm trying to generate iso2 codes for all countries (typed out manually) and I have been tol…
How to forecast or estimate missing data?Regards! I would like to know if there is a quick way to estimate (or forecast) missing data? I am u…
Reshaping long to wide data with multiple unique identifier in a data setDear all, I faced a problem while using reshape command for my data. reshape wide time_from time_t…
Number of clusters in fracregI am working with data at the firm-year level where I am running a regression with standard errors c…
creating a table with mean plus/minus SD in each cellHello! I'm using Stata 14.1 on Windows. I am creating a table that has mean plus/minus standard devi…
Subscribe to:
Post Comments (Atom)
0 Response to using input in stata for file name
Post a Comment