Sort with incomplete lists
Tue, 09/11/2018 - 08:51 am
I have datasets, which I would like to average. Unfortunately, they are not evenly long, always depends on measurement quality (electrophysiology).
So I may have V_rev_day1, V_rev_day2 and so on and I have textwaves, W_cond_day1, W_cond_day2..., containing text about the solutions applied. These lists are sorted alphabetically, but it may be, that on day1 I could measure cond1, cond2, cond4, and on day2 I could measure cond2 and cond4.
What is now the nicest way to (in the one hand, for displaying) sort the waves so that not-measured conditions give a NaN in the V_rev, and that on the other hand, I can average them properly?