I'm a bit new to KNIME so I hope this isn't duplicate or too trivial.
My dataset has a variable length unsigned integer array for each row that I would like to put into cumulative bins. I don't think I can do this with the built-in nodes, but before I resort to a Java snippet I was hoping someone has a better idea.
Here is a sample dataset, the rowID and IntArray are the input columns. Obviously the last bin's value always equals the array length.
+-------+---------------+------+-------+-------+--------+ | RowID | IntArray | Bin9 | Bin19 | Bin29 | Bin30+ | +-------+---------------+------+-------+-------+--------+ | 1 | [8,20,25,120] | 1 | 1 | 3 | 4 | | 2 | [27] | 0 | 0 | 1 | 1 | | 3 | [] | 0 | 0 | 0 | 0 | +-------+---------------+------+-------+-------+--------+
The real dataset would have around 60 bins, so this is quite annoying to do in a Java snippet.
Any tips are welcome! Thanks!