My dataset contains minute by minute stock market data for 200 companies AND if there was an announcement (eg release of results, changes of directors, etc) on that day for that stock, the row is flagged with 'TRUE' (and a 'FALSE' if there was no announcement on that day for that stock).
I would like to tag the day before the announcement for that stock with a '1' where the 'x' is denoted in the sample table below.
I would appreciate any thoughts as to how I could do this, please.
|
Regards
Imtiaz
0 Response to Generating a var based on a factor in entire dataset
Post a Comment