Thanks for this, Jarmo. So is your code mostly an efficiency gain or a bona fide functionality gain?
It doesn't work outright for me, but I have to say that I have all of this in another for loop (or two):
For( i = 1, i <= N Items( IDs ), i++,
ID = IDs[i];
date_array = Associative Array( {"date1", "date2", "date"}, {{}, {}, {}} );
For( date = date_array << First, !Is Empty( date ), date = date_array << Next( date ), //looping through date_array's keys is clunky but done this way in JMP
dt << Select Where(:Timepoint == date);
dt_ld4 << Subset(Columns({"Timepoint", "Target Channel"}), Selected Rows, Output table name("Subset"));
//...
););
The computer seems to think quite a bit upon execution but nothing shows up on the screen. I have to note that all of this code is anonymized so there's possibility for spelling mistakes and transcription errors, as well as possibility of getting confused with earlier versions of what was written. I guess it's safe to assume approximate similarities can be made...
I don't know if these two lines should be inside the loops or outside one of them, or if I need both loops at this point in time. I need to take a deep hard look at the script one more time.
I'm also discussing a few separate topics regarding this bit of code in separate posts. Could someone senior let me know if that is acceptable etiquette, or if it would be preferable to prioritize the code chunk into one post and discuss the separate topics in the single post, or whether either way is alright?
Muchos Gracias,
Michael