Hi All,
I am having issues with this merge.
In one dataset, I have the ID, the device serial number, the start and the end date of the recording.
In another dataset, I have the device number, and a time series (Date 1 & Date 2) of the variable of interest.
The problem is that the same device number can be associated with two different IDs; however, in this case, the start and the end date of the recording also differ.
My aim is to merge these two datasets resulting in a file with ID, device, Date1, Date2, Variable of Interest. Any suggestions? Many thanks in advance.
I am having issues with this merge.
In one dataset, I have the ID, the device serial number, the start and the end date of the recording.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte ID str8 device int(StartRecording EndRecording) 1 "62-36-7d" 21489 21497 2 "62-36-7d" 21497 21503 3 "03-04-2e" 21489 21503 end format %td StartRecording format %td EndRecording
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str8 device int(Date1 Date2) long VariableofInterest "62-36-7d" 21489 21490 700 "62-36-7d" 21490 21491 350 "62-36-7d" 21491 21492 1000 "62-36-7d" 21492 21493 55 "62-36-7d" 21495 21496 302 "62-36-7d" 21496 21497 650 "62-36-7d" 21497 21498 20 "62-36-7d" 21498 21499 852 "62-36-7d" 21499 21500 39 "62-36-7d" 21500 21501 102 "62-36-7d" 21501 21502 258 "62-36-7d" 21502 21503 657 "03-04-2e" 21489 21490 96 "03-04-2e" 21490 21491 104 "03-04-2e" 21491 21492 36987 "03-04-2e" 21492 21493 201598 "03-04-2e" 21493 21494 98745 "03-04-2e" 21494 21495 3698 "03-04-2e" 21495 21496 2015 "03-04-2e" 21496 21497 258 "03-04-2e" 21497 21498 357 "03-04-2e" 21498 21499 198 "03-04-2e" 21499 21500 963 "03-04-2e" 21500 21501 15 "03-04-2e" 21501 21502 367 "03-04-2e" 21502 21503 126 end format %td Date1 format %td Date2
My aim is to merge these two datasets resulting in a file with ID, device, Date1, Date2, Variable of Interest. Any suggestions? Many thanks in advance.
Comment