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
OLS MLR Regression Analysis PlanHello All, Hoping to receive feedback on a plan for an OLS MLR analysis planning in STATA. Questio…
IVProbit for % Dependent Variable with Quadratic Endogenous RegressorHello, After reading through online sources including here with @Jeff Wooldridge, Richard Williams …
Merging household census data for logistic regressionGood evening everyone, First, I'd like to say thank you to all of these helpful users from which I …
How to solve error "estimation result constrained not found" in lrtest commandHi everyone! I've run the following syntaxes to compute the global test of the parallel lines assump…
MI & GSEMMorning, I am looking to run a path analysis (two variables measured at two time points) using gsem…
Subscribe to:
Post Comments (Atom)
0 Response to Importing data conditional on something
Post a Comment