i have a large dataset that has a static date on a subject (date of chest CT scan) and i need to find the smallest date difference and keep that row (delete the others). jmp 16.2.0
Example below - i want to keep rows 2 and 4 (the smallest day difference for subject 1 and 2).
subj ID. CT date. lung function date. day difference
1 8/30/18 1/29/18 -213
1 8/30/18 8/31/18 1
1 8/30/18 3/4/19 186
2 12/19/17 11/13/18 329
2 12/19/17 9/3/19 623
2 12/19/17 10/4/21 1385