Dears, i have two datasets below, obtained in milliseconds basis. Each dataset is different .dta file. One is stock p3 prices, the other p4 prices.
The prices occur in various time and i want to combine the two datasets, to achieve a unique data file .dta, with a unique timestamp and the respective prices p3 and p4, in their places.
f i have prices p3 and p4 for the same time, they should be there, side by side.
Thanks a lot.
The prices occur in various time and i want to combine the two datasets, to achieve a unique data file .dta, with a unique timestamp and the respective prices p3 and p4, in their places.
f i have prices p3 and p4 for the same time, they should be there, side by side.
Thanks a lot.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str21 date float p3 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:003" 30.84 "20220103 10:03:57:017" 30.8 "20220103 10:03:57:017" 30.76 "20220103 10:03:57:173" 30.8 "20220103 10:03:57:193" 30.81 "20220103 10:03:57:213" 30.82 "20220103 10:03:59:447" 30.79 "20220103 10:03:59:447" 30.79 "20220103 10:03:59:447" 30.79 "20220103 10:03:59:740" 30.78 "20220103 10:03:59:740" 30.78 "20220103 10:04:00:097" 30.78 "20220103 10:04:00:097" 30.79 "20220103 10:04:00:103" 30.79 "20220103 10:04:00:407" 30.78 "20220103 10:04:00:407" 30.77 "20220103 10:04:00:407" 30.77 "20220103 10:04:00:407" 30.77 "20220103 10:04:00:590" 30.79 "20220103 10:04:00:590" 30.79 "20220103 10:04:04:603" 30.79 "20220103 10:04:04:603" 30.79 "20220103 10:04:04:603" 30.79 "20220103 10:04:07:367" 30.8 "20220103 10:04:07:367" 30.8 "20220103 10:04:07:370" 30.8 "20220103 10:04:09:813" 30.79 "20220103 10:04:09:813" 30.79 "20220103 10:04:09:827" 30.77 "20220103 10:04:09:827" 30.77 "20220103 10:04:09:873" 30.79 "20220103 10:04:10:380" 30.79 "20220103 10:04:12:600" 30.78 end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str21 date float p4 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:927" 28.54 "20220103 10:03:55:947" 28.53 "20220103 10:03:55:947" 28.53 "20220103 10:03:55:970" 28.54 "20220103 10:03:56:087" 28.54 "20220103 10:03:56:087" 28.54 "20220103 10:03:56:087" 28.54 "20220103 10:03:56:087" 28.54 "20220103 10:03:56:087" 28.55 "20220103 10:03:56:087" 28.55 "20220103 10:03:56:087" 28.55 "20220103 10:03:56:087" 28.55 "20220103 10:03:56:127" 28.55 "20220103 10:03:56:150" 28.55 "20220103 10:03:56:153" 28.55 "20220103 10:03:56:160" 28.54 "20220103 10:03:56:187" 28.55 "20220103 10:03:56:187" 28.55 "20220103 10:03:56:187" 28.55 "20220103 10:03:56:187" 28.55 "20220103 10:03:56:187" 28.55 "20220103 10:03:56:187" 28.55 "20220103 10:03:56:187" 28.55 "20220103 10:03:56:187" 28.55 "20220103 10:03:56:190" 28.56 "20220103 10:03:56:273" 28.55 "20220103 10:03:56:460" 28.55 "20220103 10:03:56:460" 28.55 "20220103 10:03:56:460" 28.55 "20220103 10:03:56:790" 28.55 "20220103 10:03:56:937" 28.56 "20220103 10:03:56:937" 28.56 "20220103 10:03:56:937" 28.56 "20220103 10:03:56:937" 28.57 "20220103 10:03:56:937" 28.57 "20220103 10:03:56:937" 28.58 "20220103 10:03:56:937" 28.58 "20220103 10:03:56:937" 28.58 "20220103 10:03:56:937" 28.59 "20220103 10:03:56:937" 28.6 end
Comment