Hi everyone!
I am facing the following problem:
I want to import an excel that is created by another do-file.
However, in days when I don't receive new data, this excel is not created.
Therefore, if I simply try to run:
import excel "this excel - ${today}.xlsx" , ///
firstrow clear
I will receive an error all the days that I haven't received data (which means there would be no excel for ${today}.
Is there any way I can conditional the import of the excel on the existence of the file?
For example, with an "IF"?
Thanks in advance!!
Isabela
Related Posts with Importing data conditional on something
date and timeHi! I have panel data with different locations that takes the values 1 - 9 indicating a spesific lo…
Problem with data managingHi, this is my first time posting here. My data has a problem. When importing my data, some lines ha…
select pairs of cases with a distance between them <18 monthsHello everyone, please, I need to create a variable that selects pairs of cases that between their M…
Create a new indicatorHello everyone, I have this 30 year panel data with he name and identifier of executives. I also ha…
select pairs of cases with a distance between them <18 monthsHi everyone. I need to select the MRIs that are less than 18 months apart. Thank you very much ---…
Subscribe to:
Post Comments (Atom)
0 Response to Importing data conditional on something
Post a Comment