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
Margins plots curve lines other than straight lineAfter using "margins" command, I use "marginsplot" command to graph the margins plots. I get straigh…
How to find lag and lead timeHello, I have this time series data looking at whether food contamination in a school district led …
Forcing Stata to Post a Singular Variance-Covariance Matrix ("variance matrix is nonsymmetric or highly singular")Hello all, I am trying to get around the "variance matrix is nonsymmetric or highly singular" erro…
Inference from initial statistics to get a hang of coefficient of interests Code: Earning employment Establishment Treat 27,425.41 19,458.09 3,829.57 (10,636.87) (3…
Calculate average of the (pairwise) sample cross-correlationsDear forum, since this is my first post here and since I am new to Stata, I hope my post fulfills th…
Subscribe to:
Post Comments (Atom)
0 Response to using input in stata for file name
Post a Comment