I have the data
{{0, 10, 10}, {0.01829, 12, 10}, {0.0523236, 11, 10}, {0.0616182, 11, 9},
{0.0860192, 10, 9}, {0.37603, 12, 9}, {0.405224, 11, 9}, {0.415151, 11, 8},
{0.453143, 13, 8}, {0.481562, 12, 8}, {0.482285, 11, 8}, {0.490412, 10, 8},
{0.492742, 10, 7}, {0.558841, 9, 7}, {0.602336, 8, 7}, {0.683204, 8, 6},
{0.738865, 9, 7}, {0.766657, 9, 9}, {0.780627, 9, 8}, {0.900705, 9, 10},
{0.905607, 9, 9}, {0.926086, 9, 8}, {1.00437, 9, 7}, {1.01303, 11, 7},
{1.06747, 10, 7}, {1.07523, 9, 7}, {1.33235, 8, 7}, {1.51981, 7, 8},
{1.61516, 6, 8}, {1.66955, 6, 7}, {1.95405, 5, 7}, {2.04023, 5, 6},
{2.04605, 5, 5}, {2.23846, 5, 4}, {2.25056, 4, 4}, {2.27559, 3, 4},
{2.5348, 2, 5}, {2.55095, 2, 6}, {2.71852, 2, 5}, {2.95299, 4, 5},
{3.23626, 6, 5}}
which represents {time, amount1, amount2}. Changes to each amount only happens at the times stated in the results.
How do I transform my data so it tells me the two amounts for discrete moments in time?
For example, for steps of 0.5, the data would be the following
{0, 10, 10}, {0.5, 10, 7}, {1.0, 9, 8}, {1.5, 8, 7},
{2.0, 5, 7}, {2.5, 3, 4}, {3.0, 4, 5}
For example, for steps of 1, the data would be the following
{0, 10, 10}, {1, 9, 8}, {2, 5, 7}, {3, 4, 5}
Nearest[]. – J. M.'s missing motivation Mar 24 '18 at 16:00