Hi all,
I am getting a type mismatch when I want to replace a variable with a string variable.
I am trying
But I get a type mismatch. Is this because I am attempting to create a string variable?
Thanks,
Chris
I am getting a type mismatch when I want to replace a variable with a string variable.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int deal_id float date_deal 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . 1 . end
Code:
replace date_deal = "12oct2006" if deal_id == 1
Thanks,
Chris
Comment