Search found 2 matches
- Tue Mar 23, 2021 1:29 am
- Forum: Programming
- Topic: Looping over a string list when importing csvs
- Replies: 3
- Views: 3512
Re: Looping over a string list when importing csvs
Read through the programming training slides: http://eviews.com/Learning/programming_a.html Particularly replacement variables and for loops. The tic and @toc commands can be used for timing. neither this works for %countries C1 C2 C3 import "my_path\my_file_{%countries}.csv" ftype=ascii ...
- Mon Mar 22, 2021 3:35 pm
- Forum: Programming
- Topic: Looping over a string list when importing csvs
- Replies: 3
- Views: 3512
Looping over a string list when importing csvs
I would like to define a list of strings, say, countries = C1, C2, C3, ... , C10 where I would use each element of the set to import differently named .csv, sort of like this, import "my_path\my_file_C1.csv" ftype=ascii rectype=crlf skip=0 fieldtype=delimited delim=comma colhead=1 eoltype=...
